Problème le robot peut ne rien choisir
This commit is contained in:
@@ -4,7 +4,7 @@ def user_move() -> int:
|
|||||||
return input("Enter your move (rock, paper, scissors): ")
|
return input("Enter your move (rock, paper, scissors): ")
|
||||||
|
|
||||||
def random_move() -> str:
|
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:
|
def check_choice_validity(move: str) -> str:
|
||||||
valid_moves = ['rock', 'paper', 'scissor']
|
valid_moves = ['rock', 'paper', 'scissor']
|
||||||
|
|||||||
Reference in New Issue
Block a user