Question: This Question is about Python. Please make sure to follow the rules in the question. Question: bjective: To play the rock-paper-scissors game. This program should

This Question is about Python.
Please make sure to follow the rules in the question.
Question:
bjective: To play the rock-paper-scissors game.
This program should play the rock-paper-scissors game, which is where the player picks either rock, paper, or scissors, the computer does the same, and then one of the following happen:
Rock breaks scissors
Paper covers rock
Scissors cut paper
There is a tie (both players picked the same thing)
If the user enters invalid input, your program should say so, otherwise it will output one of the above results. You should randomly generate a number to determine the computer's move.
Here is some sample output:
Please enter your move: Paper, Rock, or Scissors: Paper
Computer's move is Paper
Tie with Paper!
Please enter your move: Paper, Rock, or Scissors: paper
Computer's move is Scissors
Computer Wins! Scissors cut Paper!!
Please enter your move: Paper, Rock, or Scissors: scissors
Computer's move is Scissors
Tie with Scissors!
Please enter your move: Paper, Rock, or Scissors: Scissor
Computer's move is Paper
You Win! Scissors Cut Paper!!
Please enter your move: Paper, Rock, or Scissors: rock
Computer's move is Paper
Computer Wins! Paper Covers Rock!!
Please enter your move: Paper, Rock, or Scissors: r
Computer's move is Scissors
Invalid move!!
Here are the rules:
Your program should accept input of upper-case and/or lower-case letters. You can use the string's .lower() function to convert it to lower case, for example:
if user_move.lower() == 'rock':
Your program should accept "scissor" or "scissors" (with or without the s, upper or lower case) as meaning the same thing.
Your program should have at least 2 functions, including a main() function (no global variables or global code other than a call to main within an if-statement)
You should use at least one multi-way if-statement (using "elif").
You should use at least one logical "and" or "or" in your program
You should always output who won (unless there's a tie).
The output should show a variety of test cases such as above.
Every function (except main) needs to have a comment in a triple-quoted string at the beginning, briefly explaining what it does.
 This Question is about Python. Please make sure to follow the

Objective: To play the rock-paper-scissors game. This program should play the rock-paper-seissors game, which is where the player picks either rock, paper, or scissors, the computer does the same, and then one of the following happen: * Rock breaks scissors . Paper covers rock . Scissors cut paper * There is a tie (both players picked the same thing) to determine the computer's move. Here is some sample output: If the user enters invalid input, your program should say so, otherwise it will output one of the above results. You should randomly generate a number lepersiko@ fog cs 1 10a]$ python3 rps.py.txt Please enter your move: Paper, Rock, or Scissors: Paper Computer's move is Paper Tie with Paper! lepersikolfog cs 1 10a]$ python3 rps.py.txt Please enter your move: Paper, Rock, or Scissors: paper Computer's move is Seissors Computer wins! Scissors cut Paper!! (cpersikoefog cs110a1 python3 rps.py.txt Please enter your move: Paper, Rock, or Scissors: scissors Computer's move is Scissors le with Scissors! (cpersikoefog ca110a1 python3 rps.py.txt Please enter your movet Paper, Rock, or Scissors: Seissor Computer s move is Paper You Winl Scissors Cut Paper!! (epersikotog cs110a1$ python3 rps.py.txt Please enter your move: Paper, Rock, or Seissorsi roclk Computer's move is Paper Computer Wins! Paper Covers Rock!! Iepersikot fog cs 1 10a ] $ python3 rps.py.txt Please enter your move: Paper, Rock, or Seissors: r Computer's move is Scissors Invalid move!! (cpersikolfog cs110a]s Here are the rules: Your program should accept input of upper-case and/or lower-case letters. You can use the string's . .lower) function to convert it to lower case, for example: if user move.lower)rock . Your program should accept "scissor" or "scissors" (with or without the s,upper or lower case) as meaning the same thing. .Your program should have at least 2 functions, including a main0 function (no global variables or global code other than a call to main within an if-statement) . You should use at least one multi-way if-statement (using "elif"). . You should use at least one logical "and" or "or" in your program . You should always output who won (unless there's a tie) The output should show a variety of test cases such as above . Every function (except main) needs to have a comment in a triple-quoted string at the beginning, briefly explaining what it does

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!