Question: Implement function simul() that takes as input an integer n and simulates n rounds of Rock, Paper, Scissors between players Player 1 and Player 2.
Implement function simul() that takes as input an integer n and simulates n rounds of Rock, Paper, Scissors between players Player 1 and Player 2. The player who wins the most rounds wins the n-round game, with ties possible. Your function should print the result of the game as shown. (You may want to use your solution to Problem 5.26.) >>> simul(1) Player 1 >>> simul(1) Tie >>> simul(100) Player 2 . Use python. -1 if player 1 wins. 1 is player 2 wins. 0 if Tie(5.26)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
