Commit 5c0a43f5 by BellCodeEditor

save project

parent c3754b93
Showing with 5 additions and 4 deletions
...@@ -51,15 +51,15 @@ print( "战斗开始") ...@@ -51,15 +51,15 @@ print( "战斗开始")
while True: while True:
print("-"*30) print("-"*30)
choice=input("请选择技能1攻击/2治疗:") choice=input("请选择技能1攻击/2治疗:")
if choice="p": if choice=="p":
print("游戏结束了") print("游戏结束了")
break break
elif choice="1" elif choice=="1":
yase.cure() yase.cure()
elif choice="2" elif choice=="2":
yase.combat(houyi) yase.combat(houyi)
num=random.randint(1,3) num=random.randint(1,3)
if num=1: if num==1:
houyi.cure() houyi.cure()
else: else:
houyi.combat(yase) houyi.combat(yase)
\ 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