Commit cd420da9 by BellCodeEditor

save project

parent 3b3a0a19
Showing with 11 additions and 3 deletions
......@@ -40,14 +40,21 @@ houyi = Player("射手", "后羿")
yase = Hero("垭瑟")
print('*'*30)
print(" 战斗开始")
i=0
while True:
print('*'*30)
choice=input('释放技能(1攻击,2治疗):')
if choice=='1' or choice=='2':
i=i+1
choice=input('Start(1=attact,2=cure):')
if choice=='1' or choice=='2' or choice=='q':
if choice=='1':
houyi.combat(yase)
if choice=='2':
houyi.cure()
if choice=='q':
print('Game Over')
break
else:
print("输入错误,请重新输入")
print("Error,please try it again")
if i>5:
print('PLEASE READ CAREFULLY')
continue
\ 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