Commit f775e0f8 by BellCodeEditor

auto save

parent 5fd3fd18
Showing with 14 additions and 1 deletions
......@@ -38,6 +38,18 @@ class Player(Hero):
print("角色"+self.name+"创建成功,英雄类型为:", self.hero_type)
print("当前等级、血量、攻击力分别为:",self.level,self.hp,self.attack)
houyi = Player("射手", "后羿")
yase = Hero("垭瑟")
print("-"*40)
print(' 战斗开始')
while True:
print("-"*40)
choice=input("请释放英雄技能(1攻击;2治愈):")
if choice=="1":
houyi.combat(yase)
elif choice=="2"
houyi.cure()
elif choice=="q" or choice=="p":
exit()
else:
print("输入错误,请重新输入")
\ 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