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?

Python code please:Could any tutor upgrade the rock, paper, scissors game tothe rock, paper, scissors, lizard, and Spock game, where the game rules

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!