Commit c6fbfbce by BellCodeEditor

save project

parent cf18a913
Showing with 21 additions and 5 deletions
......@@ -39,7 +39,23 @@ class Player(Hero):
houyi = Player("射手", "后羿")
yase = Hero("垭瑟")
houyi.combat(yase)
yase.combat(houyi)
houyi.cure()
yase.cure()
\ No newline at end of file
print("-"*30+"\n"+" 战斗开始\n"+"-"*30)
while True:
print("请使用技能(1攻击\\2治疗)")
jr=input()
if jr=="1":
houyi.combat(yase)
print("-"*30)
elif jr=="2":
houyi.cure()
print("-"*30)
elif jr=="退出":
print("-"*30)
cx = input("确定退出吗?([Enter]退出\\输入其他继续)")
if cx=="":
print("游戏结束")
print("-"*30)
exit()
else:
print("游戏继续")
print("-"*30)
\ 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