Commit 4ee562d7 by BellCodeEditor

save project

parent 6a6fbc67
Showing with 19 additions and 19 deletions
...@@ -39,23 +39,23 @@ class Player(Hero): ...@@ -39,23 +39,23 @@ class Player(Hero):
houyi = Player("射手", "后羿") houyi = Player("射手", "后羿")
yase = Hero("垭瑟") yase = Hero("垭瑟")
print("---------------------------------") print("------------------------------")
print(' 战斗开始') print(' 战斗开始')
while True: while True:
print("---------------------------------") print("------------------------------")
chose = input("(1/2)") choice = input("(1/2)")
if choice == "q": if choice == "q":
print("游戏结束") print("游戏结束")
break break
elif choice == "1": elif choice == "1":
houyi.combat(yase) houyi.combat(yase)
elif choice == "2": elif choice == "2":
houyi.cure() houyi.cure()
else: else:
print("重新输入") print("重新输入")
continue continue
status = random.randint(1,3) status = random.randint(1,3)
if status == 1: if status == 1:
yase.cure() yase.cure()
else: else:
yase.combat(honyi) yase.combat(houyi)
\ No newline at end of file \ 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