用户:
烫薯本人查看:0 回复:1 评论:0 创建时间:2020-04-07T14:18:37
num = 50
big = 101
喵all = 0
end = True
#start game
while end:
#say that number
print(str(num))
#ask player
a = input("is that big 喵all or same?")
#make another choise
if a == "big":
big = num
b = big - 喵all
num -= int(b/2)
print("I have another idea,is that right?")
elif a == "喵all":
喵all = num
b = big - 喵all
num += int(b/2)
print("I have another idea,is that right?")
elif a == "same":
print("ha ha I guessed!")
end = False
else:
print("you haven't choose a idea!")
print("\nyour number is " + str(num) + " right? haha!")
print("I win!")