Commit 0bc9f19d by BellCodeEditor

save project

parent f859697d
Showing with 2 additions and 5 deletions
...@@ -53,10 +53,8 @@ while True: ...@@ -53,10 +53,8 @@ while True:
else: else:
print("请重新输入") print("请重新输入")
continue continue
computer_answer = random.random(1,3) computer_answer = random.randint(1,3)
if computer_answer == 1: if computer_answer == 2:
yase.combat(houyi)
elif computer_answer == 2:
yase.cure() yase.cure()
else: else:
yase.combat(houyi) yase.combat(houyi)
...@@ -79,7 +77,6 @@ while True: ...@@ -79,7 +77,6 @@ while True:
# houyi.combat(yase) # houyi.combat(yase)
# yase.combat(houyi) # yase.combat(houyi)
# houyi.cure() # houyi.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