Commit 64b78df2 by BellCodeEditor

save project

parent 7fa5e115
Showing with 15 additions and 0 deletions
...@@ -44,3 +44,17 @@ houyi.cure() ...@@ -44,3 +44,17 @@ houyi.cure()
yase.cure() yase.cure()
while True: while True:
print('-'*20+'游戏开始'+'-'*20) print('-'*20+'游戏开始'+'-'*20)
choice = input('请选择技能1/攻击2/恢复治疗')
if choice=='q':
print('游戏结束')
break
elif choice=='1'
houyi.combat(yase)
elif choice=='2':
houyi.cure()
else:
print('您的输入有误:')
continue
num1=random.randint(1,3)
if numk1=='1'
\ 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