Commit 21ee74cd by BellCodeEditor

save project

parent beb166ed
Showing with 23 additions and 0 deletions
class player(Hero):
def_init_(self,hero_type,name):
super()._init_(name)
self.hp = 200
self.attack = 50
self.max_hp = self.hp
self.hero_type = hero_type
print("" + self.name + "",self.hero_type)
print("",self.level,self.hp,self.)
houyi = Player("","")
yase = Hero("")
print(30*'-')
print(' ')
while True
print("-"*30)
choice = input("")
if choice ==",q":
print("")
break
elif choice == "1":
houyi.combat(yase)
elif choice
\ 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