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 :
|
if user_move == computer_move :
|
||||||
print("IT'S A TIE!! You're both bad..") #print avant le return
|
print("IT'S A TIE!! You're both bad..") #print avant le return
|
||||||
return
|
return
|
||||||
elif user_move == "paper" and computer_move == "scissors":
|
elif user_move == "paper" and computer_move == "scissors": # problème lié aux règles du jeu de base
|
||||||
print("YOU WIN!! You're not bad..")
|
print("YOU LOSE!! You're bad..")
|
||||||
return
|
return
|
||||||
elif user_move == "paper" and computer_move == "rock":
|
elif user_move == "paper" and computer_move == "rock":
|
||||||
print("YOU LOSE!! You're bad..")
|
print("YOU WIN!! You're not bad..")
|
||||||
return
|
return
|
||||||
elif user_move == "rock" and computer_move == "scissors":
|
elif user_move == "rock" and computer_move == "scissors":
|
||||||
print("YOU WIN!! You're not bad..")
|
print("YOU WIN!! You're not bad..")
|
||||||
|
|||||||
Reference in New Issue
Block a user