Commit b29f85ff by BellCodeEditor

auto save

parent af963495
Showing with 14 additions and 5 deletions
...@@ -41,7 +41,16 @@ class Player(Hero): ...@@ -41,7 +41,16 @@ class Player(Hero):
houyi = Player("射手", "后羿") houyi = Player("射手", "后羿")
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi.combat(yase) # houyi.combat(yase)
yase.combat(houyi) # yase.combat(houyi)
houyi.cure() # houyi.cure()
yase.cure() # yase.cure()
\ No newline at end of file #打印分隔符__________________________
print('-'*30)
#打印‘战斗开始’
#无限循环
#先打印分隔符
#让玩家选择输入1或2(1战斗/2治疗)
\ 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