Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 sure you are commenting the code and use white space. it should include comments, comments for each block of code describing what your code is doing
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions