Commit ffd7f888 by BellCodeEditor

save project

parent 83dc60d2
Showing with 6 additions and 1 deletions
...@@ -27,7 +27,7 @@ class Hero(object): ...@@ -27,7 +27,7 @@ class Hero(object):
info = info1+info2+info3 info = info1+info2+info3
print(info) print(info)
exit() exit()
def shengji(self) #def shengji(self)
class Player(Hero): class Player(Hero):
def __init__(self,hero_type,name): def __init__(self,hero_type,name):
super().__init__(name) super().__init__(name)
...@@ -52,6 +52,11 @@ while True: ...@@ -52,6 +52,11 @@ while True:
if a=='q': if a=='q':
print("退出游戏") print("退出游戏")
exit() exit()
b = random.randint(1,2)
if b==1:
yase.combat(houyi)
if b==2:
yase.cure()
# b = random.randid # b = random.randid
# houyi.combat(yase) # houyi.combat(yase)
# yase.combat(houyi) # yase.combat(houyi)
......
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