Commit 6bb99247 by BellCodeEditor

save project

parent b88e1cf5
Showing with 16 additions and 7 deletions
...@@ -24,13 +24,21 @@ class Hero(object): ...@@ -24,13 +24,21 @@ class Hero(object):
class player(Hero): class player(Hero):
def __init__(self,name): def __init__(self,name):
super().__init__(name) super().__init__(name)
self.attack = 1000 self.attack = 231
self.hp = 11111 self.hp = 210
self.max_hp = self.hp self.max_hp = self.hp
p1 = player("A") p1 = player("A")
p2 = Hero("B") p2 = Hero("B")
for j in range(int(input("range == "))): print('-'*30)
p2.combat(p1) print(" Fight bagin")
p1.cure() while True:
print('-'*30)
ce = input("Please input (1combat/2cure) :")
if ce == "q":
print("-***********Fightstop************-")
break
elif ce == "1":
p1.combat(p2)
elif :
\ 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