Commit d758c32a by BellCodeEditor

save project

parent 36e1cb5c
Showing with 16 additions and 2 deletions
......@@ -52,4 +52,18 @@ print(" 战斗开始")
while True:
print("_"*30)
F=input("请选择释放英雄技能(1攻击/2治疗)")
\ No newline at end of file
if F=="q":
print("游戏退出")
break
elif F=="1":
houyi.combat(yase)
elif F=="2":
houyi.cure()
else:
print("输入无效,开始新一轮游戏")
continue
C=random.randint(1,3)
if C=="1":
yase.combat(houyi)
else:
yase.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