Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can somebody help me format this into python idle ? First, let's change the three options of paper/rock scissoes into numeric values. For one of

can somebody help me format this into python idle ?
image text in transcribed
First, let's change the three options of paper/rock scissoes into numeric values. For one of remembering which is which, we will put them in alphabetical numerical order: 1- 1 paper 2-rock 3 scissors Second, the modified part of the game is that we KNOW ahead of time what We (the user) is going to guess (do) when we play the game. So, for this program, we KNOW we are going to select rock (2) when we play the game Third, we are playing against the computer and we do NOT know what the comptat is going to guess. But, we know it must be a 1, 2 or 3. To get that number, we will use the random number generate, that is import random computerGuess - random, randint(1.3) Last, what are the rules. Here they are. 1. paper (1) beats rock (2) 2. rock (2) beats scissors (3) 3. scissors (3) beats paper (1) Again, remember... we are going to guess rock (2) Alrighty.play a round of the game and print who wins or if it is a tie! 5. Save your changes and run your code. twu can also simply press F5) & Debe.code If you have any errors in your code, the interpreter will produce an error, with a limember where it detects there is a problem with your code. Return to the editor and correct the error. Run it through the interpreter again (step 6) until it runs with no errors 7. Testing the Cele there are several runs fonct all the possible output Sample Rull My guess rock 2 Computer guess: scissors 3 Rock crushes ROER... I want Sample Run 2 My guess: rock 2 Computer guess: rock 2 It is a tiet Sample Run My guess: rock 2 Computer guess: Paper 1 Paper covers a rock ... Computer wins

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

What is the purpose of the EEOC?

Answered: 1 week ago

Question

10. Are you a. a leader? b. a follower? _______

Answered: 1 week ago