Skip to content

Commit

Permalink
Resolved issue metafy-social#440
Browse files Browse the repository at this point in the history
Case sensitivity for user inputs removed as per the issue metafy-social#440 
Removed case sensitivity from user input by converting all user input to lower case.
Issue metafy-social#440 resolved
  • Loading branch information
tanwar-abhi authored Mar 20, 2023
1 parent 3108d05 commit fe2800d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/Rock_Paper_Scissor/rock_paper_scissor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
def getPlayer():
player = "empty"
player = input("Please Enter You Choice From - Rock | Paper | Scissor = ")
while not (player == "Rock" or player == "Paper" or player == "Scissor"):
player = player.lower()
while not (player == "rock" or player == "paper" or player == "scissor"):
player = input("Please Enter You Choice From - Rock | Paper | Scissor = ")
player = player[0].upper()+player[1:]
return player

# Function to generate input from the bot
Expand Down Expand Up @@ -72,4 +74,4 @@ def gameBegins():
endTheGame = input("You wish to end? Choose Y/N: ")
print("\nThank you for Playing!")

start()
start()

0 comments on commit fe2800d

Please sign in to comment.