From f6dcbeef342697e286d772789d2c935406c3a0d4 Mon Sep 17 00:00:00 2001 From: cleber gressoni Date: Sun, 21 Jul 2024 14:20:58 -0300 Subject: [PATCH] Small change on RockPaperScissors Game --- Rock Paper Scissors Game/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rock Paper Scissors Game/main.py b/Rock Paper Scissors Game/main.py index f6052faa..1cb03424 100644 --- a/Rock Paper Scissors Game/main.py +++ b/Rock Paper Scissors Game/main.py @@ -13,11 +13,11 @@ def game(): print("Decide your move, enter \"R\" for Rock, \"S\" for Scissors and \"P\"for Paper") tempVal=input(); sleep(0.13) - if tempVal == "R" or tempVal == "r": + if tempVal in "Rr": Pmove=1 - elif tempVal == "P" or tempVal == "p": + elif tempVal in "Pp": Pmove=2 - elif tempVal == "S" or tempVal == "s": + elif tempVal in "Ss": Pmove=3 else: print("Custom_ERROR-01 : can't recognize user's input")