Commit fa7f2a1c by BellCodeEditor

save project

parent 054084cc
Showing with 10 additions and 5 deletions
...@@ -53,12 +53,17 @@ while True: ...@@ -53,12 +53,17 @@ while True:
b=random.randint(1,2) b=random.randint(1,2)
if a=="q": if a=="q":
break break
if a==1: else :
houyi.combat(yase) if a=="1" or a=="2":
if a==2: if a=="1":
houyi.cure() houyi.combat(yase)
if a=="2":
houyi.cure()
else:
print("-"*50)
print("输入错误,请重新输入!")
continue
if b==1: if b==1:
yase.combat(houyi) yase.combat(houyi)
if b==2: if b==2:
yase.cure() yase.cure()
print("-"*50)
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