Il faut ien mettre après un return snon ca ne sera pas excecute

This commit is contained in:
2025-10-14 18:10:33 +02:00
parent a8b972fe42
commit aedb5393ce

View File

@@ -15,8 +15,8 @@ def check_choice_validity(move: str) -> str:
def check_winner(user_move: str, computer_move: str): def check_winner(user_move: str, computer_move: str):
if user_move == computer_move : if user_move == computer_move :
print("IT'S A TIE!! You're both bad..") #print avant le return
return return
print("IT'S A TIE!! You're both bad..")
elif user_move == "paper" and computer_move == "scissors": elif user_move == "paper" and computer_move == "scissors":
print("YOU WIN!! You're not bad..") print("YOU WIN!! You're not bad..")
return return