Commit eac81a1a by BellCodeEditor

save project

parent aecda1a2
Showing with 21 additions and 4 deletions
...@@ -40,8 +40,25 @@ houyi = Player("射手", "后羿") ...@@ -40,8 +40,25 @@ houyi = Player("射手", "后羿")
yase = Hero("垭瑟") yase = Hero("垭瑟")
#houyi.combat(yase) #houyi.combat(yase)
#yase.combat(houyi) #yase.combat(houyi)
houyi.cure() # houyi.cure()
yase.cure() # yase.cure()
print('-'*30) print('-'*30)
print(' 战斗开始') print(' 战斗开始')
print('-'*30) while True:
\ No newline at end of file print('-'*30)
choice=input('请选择英雄技能(1攻击/2治疗)')
if choice=='q':
print('游戏退出')
break
elif choice=='1':
houyi.combat(yase)
elif choice=='2':
houyi.cure()
else:
print('请重新输入')
continue
a=random.rantind(1,3)
if a==1:
yase.cure()
else:
yase.combat(houyi)
\ 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