From a9c90995f2f70ed8c012186b43f0658f042dd425 Mon Sep 17 00:00:00 2001 From: COUVIDOUX Gwendal Date: Tue, 14 Oct 2025 18:20:10 +0200 Subject: [PATCH] =?UTF-8?q?Probl=C3=A8me=20le=20robot=20peut=20ne=20rien?= =?UTF-8?q?=20choisir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rock_paper_scissor_game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rock_paper_scissor_game.py b/rock_paper_scissor_game.py index 3666026..884ea49 100644 --- a/rock_paper_scissor_game.py +++ b/rock_paper_scissor_game.py @@ -4,7 +4,7 @@ def user_move() -> int: return input("Enter your move (rock, paper, scissors): ") def random_move() -> str: - return random.choice(['rock', 'paper', 'scissors','']) + return random.choice(['rock', 'paper', 'scissors']) #erreur de règle : le robot ne peux pas ne rien choisir def check_choice_validity(move: str) -> str: valid_moves = ['rock', 'paper', 'scissor']