Commit 8875b183 by BellCodeEditor

save project

parent bb045d65
Showing with 17 additions and 3 deletions
......@@ -50,5 +50,19 @@ print(" 战斗开始")
while True:
print("-"*30)
c=input("请输入技能(1攻击2治疗)")
if c="q"
print()
\ No newline at end of file
if c=="q":
print("游戏结束")
break
elif c=="1":
houyi.combat(yase)
elif c=="2":
houyi.cure()
else:
print("请重新输入1或2")
d=random.randint(1,3)
if d=="1":
yase.cure()
elif d=="2":
yase.combat(houyi)
\ 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