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!)
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')
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.
Answer: The kinetic energy of the 20 gram ball is half the kinetic energy of the 10 gram ball.
Explanation: :)
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.
please help!! i need this asap <3
(the boxes have the same answer choices in both)
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
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.
List out the process of Assembly in the film editing process. NO LINKS. answer ASAP
Answer:
just try your best
Explanation:
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.
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.