Commit 6c966df3 by BellCodeEditor

save project

parent 5c87e18a
Showing with 18 additions and 2 deletions
import random
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
self.name = name self.name = name
...@@ -43,4 +44,19 @@ print(" 敌军还有五秒到达战场") ...@@ -43,4 +44,19 @@ print(" 敌军还有五秒到达战场")
print("="*30) print("="*30)
while True: while True:
cz=input("Come And Fight Me! ") cz=input("Come And Fight Me! ")
if c if cz == "1":
\ No newline at end of file houyi.combat(yase)
elif cz == "2":
houyi.cure()
elif cz == "quit":
print("hahah you damn kid")
break
else:
print("you kidding??")
continue
ai = random.randint(0,3)
print(ai)
if ai == 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