Commit 4ee562d7 by BellCodeEditor

save project

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