Commit 4fac6a45 by BellCodeEditor

save project

parent 12613b63
Showing with 14 additions and 14 deletions
...@@ -15,19 +15,19 @@ for i in a: ...@@ -15,19 +15,19 @@ for i in a:
result=data[0]+str (sum) result=data[0]+str (sum)
print(resutl) print(resutl)
def combat(self,enemy):
info1=self.name+""+enemy.name+""
info2=""+str(self.attack)+""
enemy.hp-=self.attack
if enemy.hp>0:
info3=enemy.name+""+str(enemy.hp)+""
info=info1+info2+info3
print(info)
else:
info3=enemy.name+""
info=info1+info2+info3
print(info)
exec()
yase=hero("")
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