Question: Write a program that lets the user play the game of rock, paper, scissors agaisnt the computer. The program should work as follows: please make
Lab 6 (20 pts) Write a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows: 1. When the program begins, a random number in the range of 1 and 3 is generated. 1 = Computer has chosen Rock 2 = Computer has chosen Paper 3 = Computer has chosen Scissors (Don't display the computer's choice yet) 2. The user enters his or her choice of "Rock", "Paper", "Scissors" at the keyboard. 3. The computer's choice is displayed. 4. A winner is selected according to the following rules: Rock smashes Scissors b. Scissors cuts Paper c. Paper wraps rock d. If both players make the same choice, the game must be played again to determine the winner. a. When writing this program, create your own functions. You must also have at least one value returning function. Deliverables: 1. A well-documented working python program (py file)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
