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 »
pfa


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 current 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 Paper 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 1 days AfterMay 17, 2021

Answer To: Design a python program that simulates the game rock, paper, and scissors. You are to keep track of...

Karthi answered on May 19 2021
149 Votes
from random import randint
varities = ["Rock", "Paper", "Scissor"]
def menu():
print("1. Thro
w Rock")
print("2. Throw Paper")
print("3. Throw Scissor")
print("4. Quit")
print(" ")

def rules():
print("Rules of the game:")
print("==================")
print("Rock beats Scissors")
print("Paper beats Rock")
print("Scissor beats paper")
print(" ")

def main():
menu()

AI = varities[randint(0,2)]

Human = False

i = 0
j = 0
a = 0
b = 0

while Human == False:
Human = input("Select your option: ")
if Human == AI:
print(" ")
print("==Results==")
print("Tie")
print(" ")

elif Human in ("1", "Rock", "rock", "ROCK", "r"):
if AI == "Paper":
print(" ")
print("==Results==")
print(" ")
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here