Problème de papier qui gagne contre iseaux et ciseaux qui gagne contre pierre
This commit is contained in:
@@ -17,11 +17,11 @@ def check_winner(user_move: str, computer_move: str):
|
||||
if user_move == computer_move :
|
||||
print("IT'S A TIE!! You're both bad..") #print avant le return
|
||||
return
|
||||
elif user_move == "paper" and computer_move == "scissors":
|
||||
print("YOU WIN!! You're not bad..")
|
||||
elif user_move == "paper" and computer_move == "scissors": # problème lié aux règles du jeu de base
|
||||
print("YOU LOSE!! You're bad..")
|
||||
return
|
||||
elif user_move == "paper" and computer_move == "rock":
|
||||
print("YOU LOSE!! You're bad..")
|
||||
print("YOU WIN!! You're not bad..")
|
||||
return
|
||||
elif user_move == "rock" and computer_move == "scissors":
|
||||
print("YOU WIN!! You're not bad..")
|
||||
|
||||
Reference in New Issue
Block a user