Question: Create a new Python program and save it in your Prac 9 directory. In its original form, each of the two players simultaneously chooses one

Create a new Python program and save it in your Prac9 directory.
In its original form, each of the two players simultaneously chooses one of rock, scissors or paper. Rock beats scissors, paper beats rock and scissors beats paper. If both players choose the same, it is a draw.
You will create a program to play the game, human against computer. The human player will select one of three options: Rock, Scissors or Paper. The computer will then make its choice randomly using the random number generator. The computer also decides and displays who has won (for example, by displaying one of these messages: "I win", "You win", "Draw").
After you generate a random number for the computer's choice, you will need to use some if statements to decide which word to display.
To decide who has won, you will need to use some if-else statements!
a) Write the pseudo-code for the game and then get a demonstrator to check your pseudo-code before going on to the next step.
b) Now create the program using your pseudo-code.
c) Test the program with different inputs to make sure the results are what you expect.
 Create a new Python program and save it in your Prac9

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 Databases Questions!