Commit 8f07018e by BellCodeEditor

save project

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