Commit b81855ce by BellCodeEditor

save project

parent f70792e8
Showing with 7 additions and 0 deletions
...@@ -48,8 +48,14 @@ while True: ...@@ -48,8 +48,14 @@ while True:
houyi.combat(yase) houyi.combat(yase)
if l=='2': if l=='2':
houyi.cure() houyi.cure()
if yase.hp<=0:
print('你赢了')
break
c=random.randint(1,3) c=random.randint(1,3)
if c=='2': if c=='2':
yase.cure() yase.cure()
else: else:
yase.combat(houyi) yase.combat(houyi)
if houyi.hp<=0:
print('你输了')
break
\ 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