Commit 8d189f3c by BellCodeEditor

save project

parent 04e32674
Showing with 14 additions and 3 deletions
......@@ -53,7 +53,18 @@ print(' 游戏正式开始')
while True:
print('-'*30)
choise = input("请您选择技能1)攻击 2)治愈:")
if choise == 'q':
print('玩家退出,游戏结束.')
break
elif choise == '1':
houyi.combat(yase)
elif choise == '2':
houyi.cure()
else:
print('请输入正确的操作.')
num = random.randint(1,3)
if num == 1:
yase.cure()
else:
yase.combat(houyi)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment