Commit b81855ce by BellCodeEditor

save project

parent f70792e8
Showing with 9 additions and 3 deletions
......@@ -47,9 +47,15 @@ while True:
if l=='1':
houyi.combat(yase)
if l=='2':
houyi.cure()
houyi.cure()
if yase.hp<=0:
print('你赢了')
break
c=random.randint(1,3)
if c=='2':
yase.cure()
else:
yase.combat(houyi)
\ No newline at end of file
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