Commit d823fdd8 by BellCodeEditor

auto save

parent b1de7646
Showing with 15 additions and 3 deletions
...@@ -39,7 +39,19 @@ class Player(Hero): ...@@ -39,7 +39,19 @@ class Player(Hero):
houyi = Player("射手", "后羿") houyi = Player("射手", "后羿")
yase = Hero("垭瑟") yase = Hero("垭瑟")
print("_"*30) print("_"*30)
print(" 战斗开始") print("战斗开始")
while True: while True:
print("_"*30) print("_"*30)
sadfyngguir = input("使用英雄技能(1攻击,2治疗)") sadfyngguir = input("使用英雄技能(1攻击,2治疗,3退出)")
\ No newline at end of file if sadfyngguir == 1:
print("_"*30)
houyi.combat(yase)
elif sadfyngguir == 2:
print("_"*30)
houyi.cure()
elif sadfyngguir == 3:
print("_"*30)
print("战斗结束")
else:
print("_"*30)
print("输入1、2或3")
\ 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