Question: Write a program that will simulate the Rock-Paper-Scissors game. Allow two players to input one at a time: (P or p) for Paper, (R
Write a program that will simulate the Rock-Paper-Scissors game. Allow two players to input one at a time: (P or p) for Paper, (R or r) for Rock. (S or s) for scissors. Your program should display who the winner is and the reason for winning: Paper covers rock, Rock breaks scissors, and Scissors cut paper. Allow users to accept letter inputs in any case. When you have completed your program and verification, use your program to complete the test data table below. Provide the following comments: date, author, program description. (Include all possible inputs of player 1 and player 2) Sample Output: Player 1 input: P Player 2 Input: R Player 1 wins the game because paper covers rock Test Data: Player 1 S S Input Player 2 R R Winner S R Output Reason Paper covers rock Scissor cut paper Rock break scissor
Step by Step Solution
3.33 Rating (153 Votes )
There are 3 Steps involved in it
Heres a simple Python program for simulating the RockPaperScissors game RockPaperScissors Game def g... View full answer
Get step-by-step solutions from verified subject matter experts
