Commit 308b075c by BellCodeEditor

save project

parent ac795495
Showing with 26 additions and 0 deletions
class Hero
def_init_name
self.name = name
self.level = 1
self.hp = 250
self.attack = 40
self.max_hp = self.hp
def combet(self,enemy):
inpu1 = self.name+"s"enemy.name+"xhxgxhd"
inpu2 = "seh"+str(self.attark)+"ggjm"
enemy.hp-=self,attack
if enemy.hp >0:
inpu3 = enemy.name+"ccd"+str(enemy.hp)+"saz"
init = inpu1+inpu2+inpu3
print(info)
else:
inpu3 = enemy.name
init = inpu1+inpu2+inpu3
print(info)
exit()
class player(hero)
def_init_(self,name)
super()._init_(name)
selp.hp = 200
selp.attack = 50
\ 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