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


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 27 days AfterJul 10, 2021

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

Ajay answered on Aug 06 2021
133 Votes
import random
print(f"MENU:")
print(f"1.    Throw Rock")
print(f"2.    Throw Paper")
print(f"3.    Throw
Scissors")
print(f"4.    Quit")
# win_condition = [("rock","scissors"), ("paper", "rock"), ("scissors", "paper")]
win_count = 0
loss_count = 0
tie_count = 0
msg_txt = ""
game_play_count = 0
def DisplayResult(win_count, loss_count, tie_count, game_play_count, msg_txt):
print("=========== RESULTS ===============")
print( f"{ msg_txt } " )
print( f"Total Win count = { win_count } " )
print( f"Total Loss count = { loss_count } " )
print( f"Total Tie count = { tie_count } " )
print( f"Total GamePlay count = { game_play_count } " )
while True:
correct_selection = False
user_select = input( f"Enter your choice number from Menu: " )
if(user_select == "1"):
user_select...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here