Question: Create a Rock and Scissors game by using a python function with if-elif-else statement. There should be two players (one pc, and one user).
Create a Rock and Scissors game by using a python function with if-elif-else statement. There should be two players (one pc, and one user). The user should provide the inputs (rock, paper or scissors) and the program should compare it with the computer's choice (Hint: Use Random), and finally the program should ask if the user want to continue the game or quit it. Remember the rules: Rock beats scissors Scissors beats paper Paper beats rock
Step by Step Solution
There are 3 Steps involved in it
Answer import random def playgame Dictionary to map player choices to their respective index choices ... View full answer
Get step-by-step solutions from verified subject matter experts
