Question: 1 5 . 2 Project - FINAL code: Rock, Paper, Scissors GAME ( LT - C - SP 2 4 ) In this Project -

15.2 Project - FINAL code: Rock, Paper, Scissors GAME (LT-C-SP24)
In this Project-FINAL code assignment, you will complete your code for the game of Rock, Paper, Scissors. In this game, each of the 2 players (where the second player of whom may be the computer) selects one of the following without showing it to the other player: rock, paper, or scissors.
In this FINAL part, you will add the last requirement/capability which is to play a Game (with multiple rounds), rather a single Round. The program will also keep track of display the total number of wins by each of the two players.
The Inputs
The first number in the input box is still the game choice of whether the second player is a computer, or a person is indicated by the first number read from the input box:
0- both players are people (using the input box)
1- the second player is a computer (using a random number)
The second number in the input box is the number of rounds of play in the game.
The remaining numbers in input box are the player choices for each round. There is either for one player for each round (if the second player is the computer), or the choices for each of the two players (if the second player is also a person) one round at a time.
The Rules of the Game:
The rules of the game are paper beats rock, scissors beat paper, rock beat scissors, and if both players select the same item (say both select rock) then it is a tie.
Since the Coral pseudocode language does not support characters or strings, we will use the following encoding:
Required Functions
You will write functions with the following signatures:
1 5 . 2 Project - FINAL code: Rock, Paper,

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 Programming Questions!