Commit 32cf8b97 by BellCodeEditor

save project

parent 388defee
Showing with 8 additions and 8 deletions
......@@ -46,18 +46,18 @@ print("-" * 30)
while True:
a=input("1:攻击 2:回血")
c=random.randint(1,3)
if a=="q":
WanJia=input("1:攻击 2:回血")
RenJi=random.randint(1,3)
if WanJia=="q":
break
if a=="1":
if WanJia=="1":
houyi.combat(yase)
if a=="2":
if WanJia=="2":
houyi.cure()
if a != "q" and a != "1" and a != "2":
if WanJia != "q" and WanJia != "1" and WanJia != "2":
input("请重输")
continue
if c=="1" or c=="2":
if RenJi==1 or RenJi==2:
yase.combat(houyi)
if c=="3":
if RenJi==3:
yase.cure()
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