Question: Problem 7: Rock Paper Scissors (10 points) Game Development) Rock, Paper, Scissors is a hand-based game played between two people. During a match, each player

Problem 7: Rock Paper Scissors (10 points) Game Development) Rock, Paper, Scissors is a hand-based game played between two people. During a match, each player chooses one of three possible options: Rock, Paper, or Scissors. Afterwards, both players reveal their selection simultaneously. Your task is to a program that acts as a referee (ie. game manager) to determine the winner of a game. Facts . Rock beats Scissors . Scissors beats Paper . Paper beats Rock If both player selections match then its a tie. Input The first line is the number of test cases. Then each additional line will contain two different text text input represents the first player's selection. The second text input represents the second player's selection. Each player selection is limited to: "paper. rock, scissors" Output Your program must display the final result of that game as on of the following: "Tiel","Player 1 wins" or "Player 2 wins Sample Input 3 paper paper Sample Output Tie! Player 2 wins! Player 1 wins! rock paper scissors paper
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
