Question: Build a program that plays Rock, Paper, Scissors. The program should first accept an integer input from player 1. Then, it should accept an integer
Build a program that plays Rock, Paper, Scissors. The program should first accept an integer input from player 1. Then, it should accept an integer input from player 2. For each input, the value 1 represents "rock", 2 represents "paper", and 3 represents "scissors". All other values are invalid. If either player inputs an invalid value, the program should print Error and stop executing.

In python please!
False True p1 == P2 Output: "tie" False True p1 == "rock" False True p2 == "paper" False True p1 == "paper" Output: "p1 wins" Output: "p2 wins" False True p2 == "rock" False Output: p2 == "rock" True Output: "p2 wins" "p1 wins" Output: "p1 wins" Output: "p2 wins" END
Step by Step Solution
There are 3 Steps involved in it
Heres a Python program that follows the logic of the flowchart for playing Rock Paper Scissors pytho... View full answer
Get step-by-step solutions from verified subject matter experts
