Commit 8f07018e by BellCodeEditor

save project

parent 5430a230
Showing with 5 additions and 2 deletions
...@@ -34,7 +34,6 @@ class Player(Hero): ...@@ -34,7 +34,6 @@ class Player(Hero):
self.hero_type=hero_type self.hero_type=hero_type
yase=Hero('亚瑟',100,20,100) yase=Hero('亚瑟',100,20,100)
houyi=Player('后羿',50,40,50,'射手') houyi=Player('后羿',50,40,50,'射手')
yase.j(houyi)
print('-'*30) print('-'*30)
print(' 战斗开始') print(' 战斗开始')
while True: while True:
...@@ -49,8 +48,11 @@ while True: ...@@ -49,8 +48,11 @@ while True:
else: else:
print('输入1或2') print('输入1或2')
continue continue
a=random.randint(1,3)
a=random.randint(1,2)
print(a)
if a==1: if a==1:
houyi.j(yase) houyi.j(yase)
else: else:
print('z')
houyi.zhiliao() houyi.zhiliao()
\ 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