Rock, Paper, Scissors

In this unit, you expanded your Python skills, and now you can really have some fun! In this lab, you are going to create a game that allows the user to play Rock, Paper, Scissors against the computer. If you aren’t familiar with this classic game, here’s how it works: two people (or a person and a computer!) each select either rock, paper, or scissors. The player who chooses the stronger object wins. Here is how the winner is determined:


Rock beats scissors because a rock can break scissors.

Paper beats rock because paper can cover a rock.

Scissors beats paper because scissors can cut paper.

Go to https://repl.it/ to write your program.


Your program should do the following:


Randomly choose rock, paper, or scissors for the computer

Ask the user to choose rock, paper, or scissors

Compare the computer’s choice to the player’s choice

Announce whether the computer or the human won

Here are two hints to help you write this program:


Test parts of your program to see if they work before moving on to work on other parts. For example, you will need to have the computer select a random number and then choose for that number to correspond to rock, paper, or scissors. You can write just that portion of the program and then test it by having the program print the word “rock,” “paper,” or “scissors” before you even begin working on the part of the program where the user inputs their choice. (Of course, don’t forget to erase the line of code that prints the computer’s choice when you are finished testing—otherwise the game will be just a bit too easy for the user!)

On a piece of paper, draw a chart that shows all nine possible outcomes of the game and use that chart to design and test the program. The chart might look like this:

TABLE 1 Rock paper scissors outcomes

Computer chooses rock Computer chooses paper Computer chooses scissors

User chooses rock


Tied game


Computer wins


User wins


User chooses paper



User chooses scissors



Run several tests on your program to be sure that the correct winner is announced.


When your program works properly, take a screenshot of your code to turn in.
(and no links!)

Answers

Answer 1

Answer:

here's the link https://onlinegdb.com/PFLVdeqwM

plz gib brainlist lol

print('choose Rock, Paper, or Scissors')

choice=input('insert your choice:')

import random

x= random.randint(1,3)

if choice == ('Rock'):

   if x == 1:

       print('tie')

       print('I chose rock')

   if x == 2:

       print('you lose')

       print('I chose paper')

   if x == 3:

       print('you win')

       print('I chose Scissors')

if choice == ('Paper'):

   if x == 1:

       print('you win')

       print('I chose rock')

   if x == 2:

       print('tie')

       print('I chose paper')

   if x == 3:

       print('you lose')

       print('I chose scissors')

if choice == ('scissors'):

   if x == 1:

       print('you lose')

       print('I chose rock')

   if x == 2:

       print('you win')

       print('I chose paper')

   if x == 3:

       print('Tie')

       print('I chose scissors')

Answer 2
Ok I will go on it ok

Related Questions

Which of the following statements about networking IS CORRECT? A. Networking is only for professionals in certain careers. B. Networking may be done in person but not online. C. Networking is an ineffective way to learn about job openings. D. Networking is an effective way to learn about job openings.

Answers

B is the correct answer
D is the correct answer. Because a is untrue b is definitely untrue c is also untrue, therefore our only answer is d. Also because it’s true network is definitely an effective way to learn about job openings. Hope this helps. :)

please help!! i need this asap <3
(the boxes have the same answer choices in both)

Answers

Answer:

going based off the graph, it looks like for the first one it's 50 and the second is 200.

Explanation:

lmk if it's right or wrong </3

First is 50 second is 200

I have a chromebook SAMSUNG and need help on customizing my cursor, what do I do? I downloaded a cursor from a rw-designer website and I'm not sure how to apply it.

Answers

If you download a custom cursor for chrome it should work, go to custom-cursor.com and follow the how to use guide and it should work.
Whichever browser you use you will need to go to the browser store of an extension site and download a cursor extension. To manage it you need to use the extensions button or the browser settings and choose your preferred settings.

please help!! thank you so much!! <3

Compared to a ball with a mass of 10 grams, which statement describes the change in kinetic energy of a ball with a mass of 20 grams thrown at the same speed?


1) The kinetic energy of the 20 gram ball is the same as (=) the kinetic energy of the 10 gram ball.

2) The kinetic energy of the 20 gram ball is half (½×) the kinetic energy of the 10 gram ball.


3) The kinetic energy of the 20 gram ball is four times (4×) the kinetic energy of the 10 gram ball.


4) The kinetic energy of the 20 gram ball is two times (2×) the kinetic energy of the 10 gram ball.

Answers

Answer: The kinetic energy of the 20 gram ball is half the kinetic energy of the 10 gram ball.

Explanation: :)

I think the answer is number 4

Please help!! I need this asap! thank you so much!! <3


Compared to a ball thrown at 10 meters per second, which statement describes the change in kinetic energy of a ball of the same mass thrown at 20 meters per second?



1) The kinetic energy of the ball thrown at 20 meters per second is half (½×) the kinetic energy of the ball thrown at 10 meters per second.


2) The kinetic energy of the ball thrown at 20 meters per second is two times (2×) the kinetic energy of the ball thrown at 10 meters per second.


3) The kinetic energy of the ball thrown at 20 meters per second is the same as (=) the kinetic energy of the ball thrown at 10 meters per second.


4) The kinetic energy of the ball thrown at 20 meters per second is four times (4×) the kinetic energy of the ball thrown at 10 meters per second.

Answers

I think it’s the last one

Answer:

Does a car's kinetic energy change more when the car speeds up from 10 to 15 m/s or from 15 to 20 m/s explain?

Answer and Explanation: The kinetic energy changes more if the car goes from 15 m/s to 20 m/s.

Explanation:Does a car's kinetic energy change more when the car speeds up from 10 to 15 m/s or from 15 to 20 m/s explain?

Answer and Explanation: The kinetic energy changes more if the car goes from 15 m/s to 20 m/s.

List out the process of Assembly in the film editing process. NO LINKS. answer ASAP

Answers

Answer:

just try your best

Explanation:

When you make a film, you need to follow an organised process. It’s best to think of filmmaking as three distinct stages:

planning and getting ready to film (development and pre-production)
filming (production), and
completing the film and getting it ready to show (post-production).
Other Questions
energyUsing the Earth's internal heat to generate electricity is calledA. geothermalB. solarC. hydroelectricD. windPlease select the best answer from the choices providedB Help is needed please What is the prime factorization for 48? Nick's science test has a section with twelve true-or-false questions. In how many different ways can Nick answer the questions? Rumors of an impending crisisInvestors sell millions of shares of stockBanks are not insured by the governmentAn economic impact of the 20th-century events described above was A. Severe drought in the Great PlainsB. High unemployment ratesC. The election of a new presidentD. Civil rights for Hispanics Which one of the following was not done by Abraham Lincoln?asaved or preserved the Unionled the US during the Civil Warbwrote Poor Richard's AlmanacdEmancipation Proclamation Three district robots are being used today Lateral areaSurface area :) Find the surface area and volume of the cylinder below:5 m22 mSurface Area:m?Volume:m Is the smaller yahama red venova an alto too? 1. What is the function of the ciruclatory system?2. What is the function of the Digestive system?3. What is the function of the Endocrine system?4. What is the function of the excretory system?5. What is the function of the muscular system?6. What is the function of the nervous system?7. What is the function of the reproductive system?8. What is the function of the Respiratory system?9. What is the function of the skeletal system? A cylinder has a height of 13 feet and a radius of 11 feet. What is its volume? Use a ~ 3.14and round your answer to the nearest hundredth. BRAINLY USERS PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE answer this question for me please its missing and im trying to make up missing work :(((((ILL DEFINETLY GIVE BRAINLIEST 5 STARTS AND A THANKS There are 173 basketball fans who plan to go to a game. How many buses will be needed, given that each bus can hold 46 fans? which two types of natural resources are required to make bottled water? A. metals B. fossil fuels C. living things D. freshwater Which device would add rhythm to a poem?repetition of sounds across several linesfocus on a strong thematic elementa simile comparing the subject to musicpersonification of an emotion At December 31, 2021, Sunland Company had a credit balance of $15,300 in Allowance for Doubtful Accounts. During 2022, Sunland wrote off accounts totaling $12,800. One of those accounts of $1,700 was later collected. At December 31, 2022, an aging schedule indicated that the balance in Allowance for Doubtful Accounts should be $26,800. Prepare journal entries to record the 2022 transactions of Sunland Company. Missy and Bill were asked to evaluate the expression -3(-2 + 5). A student rubs a rubber rod with fur, producing a negative charge on the rod. The student then touches the rod to a hollow, neutral metal sphere that stands on an insulating plastic stand. This transfers negative charges from the rod to the sphere: Which statement best predicts what will happen to the charge, and why? A It will distribute itself evenly over the surface of the sphere, because like charges repel and the sphere is a conductor. B It will remain at the point of contact between the rod and the sphere, because resistance in the metal prevents the charges from easily moving. C It will slowly drift to the bottom of the sphere, because the charges rapidly attach to individual atoms, making them slightly heavier than surrounding atoms. D It will quickly spread to the air around the sphere, because it will seek to occupy as large a volume of neutral matter as possible. From 1861 to 1863 how much more did the price of food staples like bacon & flourincrease?