Question: Python code please: Could any tutor upgrade the rock, paper, scissors game to the rock, paper, scissors, lizard, and Spock game, where the game rules
Python code please:
Could any tutor upgrade the rock, paper, scissors game to the rock, paper, scissors, lizard, and Spock game, where the game rules are shown by the attached picture?


def rps ( ) : WN The function rps is used to play the rock, paper, scissors game. emojis = emoji_dict( ) LO while True: 10 player = input ( 'Player: ' ) 11 if player=='' or player not in 'rps': 12 print ( ' Game ends . ') 13 break 14 15 computer = rand_rps ( ) 16 print ( 'Player: ', emojis[player], 17 'Computer: ', emojis [ computer ]) 18 19 result = check_win (computer, player) 20 21 if result == 'Win' : 22 print ( 'You win. ' ) 23 elif result == 'Lose': 24 print ( 'You lose. ') 25 else : 26 print ( "Tie game" ) 27 28 print ( ' \ ' )Rock, Paper, Scissors, Lizard, Spock - Scissors cuts paper - Paper covers rock - Rock crushes lizard - Lizard poisons Spock - Spock smashes scissors - Scissors decapitates lizard - Lizard eats paper - Paper disproves Spock - Spock vaporizes rock - And, as it always has, rock crushes scissors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
