Question
Writhe a program that does the following with Python codings: a. Initialize an empty list which you will use to store the results of each
Writhe a program that does the following with Python codings:
a. Initialize an empty list which you will use to store the results of each game.
b. Start a game of rock paper scissors with to user.
1. The user will play against the computer. A scissor can cut paper, a rock can knock a scissor, and paper can wrap a rock.
2. Open a do-while loop as a play loop. Query the player after each loop. Break from the game when requested
3. Ask the user to select their choice (rock, paper, scissors)
4. After the user has entered their choice, the program use a random number generator for its selection.
5. Your program will evaluate who won or if there was a tie after each round.
6. The program reports what the computer chose, the users choice, who won that round, and game tally. The game tally shows number of rounds, wins/losses for the player and number of ties.
7. Store that information in your game results list.
8. Ask the player if the user wants to play again.
c. When the player is done display the game results.
d. When done display a goodbye message.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started