Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Design a python program that simulates the game rock, paper, and scissors. You are to keep track of your wins, losses, and ties. You are to allow the users to play over and over again until he or she...

1 answer below »
Design a python program that simulates the game rock, paper, and scissors.  You are to keep track of your wins, losses, and ties.  You are to allow the users to play over and over again until he or she decides to quit.  After each throw, you will display the results of the throw followed by the cu
ent win, loss, tie numbers.  A throw consists of the player picking either Rock, Paper, or Scissors followed by the computer randomly choosing Rock, Paper, or Scissors.
Rules of the game:
Rock beats Scissors.
Paper beats Rock.
Scissor beats paper.
MENU:
1. Throw Rock
2. Throw Pape
3. Throw Scissors
4. Quit
Sample Run:
    Option 1:
    == RESULTS ==
Computer Throws Scissors, you win
Wins…………………...:        1
Losses………………...:     0
Ties…………………..:         0
Longest Win Streak....:     1
Longest Lose Streak..:     0
Note: After each Throw you will display the results from above
Answered 7 days After Jun 19, 2021

Solution

Krishan answered on Jun 25 2021
143 Votes
# import random module
import random

# deine variable to store the score of the game
win, lose, tie = 0, 0, 0
countinousWins, longestWinStreak = 0,0

# Print multiline instruction
# performstring concatenation of string
print("Winning Rules are as follows: \n"
+"1. Rock beats Scissors. \n"
+ "2. Paper beats Rock. \n"
+"3. Scissor beats paper. \n")
# loop for the number of times, user plays the game
while True:
print("Menu : \n 1. Throw Rock \n 2. Throw Paper \n 3. Throw Scissors \n 4. Quit")

# take the input from use
choice = int(input("Enter Menu number for option to select: "))

# looping until user enter invalid input
while choice > 4 or choice < 1:
choice...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here