def game():
def intboom():
maxnum,minnum = sorted([ram.randint(1,300),ram.randint(1,300)])
def get():
global maxnum,minnum
if maxnum - minnum > 150:pass
else:
maxnum,minnum = sorted([ram.randint(1,300),ram.randint(1,300)])
get()
getnum = ram.randint(maxnum,minnum)
ui = gui.msgbox('I have a secret number','game','start')
while True:
ui = int(gui.choicebox('the choice:','game',[str(getnum2) for getnum2 in range(maxnum,minnum)]))
if ui == getnum:
ui = gui.msgbox('you right','game','ok')
break
else:
if ui > getnum:
maxnum = ui
else:
minnum = ui
ui = gui.choicebox('please choice:','pystation',choices=['intboom'])
if ui == 'intboom':
intboom()
这个游戏怎么玩不通关?