Question: python2.7 1. (35 points) Rock, Paper, Scissors is a two-player game in which each player chooses one of three items. If both players choose the

python2.7
1. (35 points) Rock, Paper, Scissors is a two-player game in which each player chooses one of three items.
If both players choose the same item, the game is tied:
Otherwise, the rules that determine the winner are:
(a) Rock always beats Scissors (Rock crushes Scissors)
(b) Scissors always beats Paper (Scissors cut Paper)
(c) Paper always beats Rock (Paper covers Rock)
(d) Use R to pick rock, P to pick paper, S to pick scissors and X to Exit the game After every round, the winner is displayed to the screen. After the game is finished, a tuple is returned with the counts of three values (Player Wins, Computer Wins, Ties).
 python2.7 1. (35 points) Rock, Paper, Scissors is a two-player game

>>>rps () Please choose a (R) ock, (P) aper, (S) cissors or e (X)it: R Computer picked R A tie Please choose a (R) ock, (P) aper, (S) cissors or e (X) it: R Computer picked F Computer wins Please choose a (R) ock, (P) aper, (S) cissors or e (X)it: R Computer picked R A tie Please choose a (R) ock, (P) aper, (S) cissors or e (X) it: R Computer picked S Player wins Please choose a (R) ock, (P) aper, (S) cissors or e (X)it: R Computer picked F Computer wins Please choose a (R) ock, (P) aper, (S) cissors or e (X) it: X

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!