Commit c1f3e26f by BellCodeEditor

save project

parent 025df798
Showing with 11 additions and 2 deletions
...@@ -62,7 +62,16 @@ while True: ...@@ -62,7 +62,16 @@ while True:
elif c == '2' or c == '治疗': elif c == '2' or c == '治疗':
time.sleep(0.2) time.sleep(0.2)
houyi.cure() houyi.cure()
elif c == 'q':
print(' --退出游戏--')
break
else: else:
time.sleep(0.2) time.sleep(0.2)
print('输入错误!') print('输入错误!')
print(' --电脑回合--') continue
\ No newline at end of file print(' --电脑回合--')
z = random.randint(1,3)
if z <= 2:
self.combat(houyi)
else:
self.cure()
\ No newline at end of file
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