Commit 948d391f by BellCodeEditor

save project

parent 66589584
Showing with 48 additions and 2 deletions
...@@ -11,4 +11,50 @@ class Hero(object): ...@@ -11,4 +11,50 @@ class Hero(object):
print(self) print(self)
\ No newline at end of file
print('-'*30)
print(" 战斗开始")
while Ture:
print('-'*30)
a=input("1,攻击,2治疗:")
if a=='q':
exit()
if a=='1':
houyi.cure()
if a=="2":
houyi.cure()
b=random.randint(1,3)
if b==1:
yase.cure()
\ 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