Question: Create a Project called RockPaperScissors to implement the Rock / Paper / Scissors Game. The user plays the Game against the Computer. The Program Should

Create a Project called RockPaperScissors to implement the Rock/Paper/Scissors Game. The user plays the Game against the Computer. The Program Should continue as long as the player wants to play the game again. The Games will be displayed in a Windows Form using C# Components.
The Project should work as follows:
When the Program begins, a random number is generated between 1 and 3.(See BELOW Project #2, for an example of a Random Number Generator.) If the number is 1, then the computer has chosen rock...if the number is 2, the computer has chosen paper......if the number is 3, the computer has chosen scissors. (Do not display the compters choice)
The User then selects his/her choice for Rock, paper or scissors. To get this input use the Scanner class. The User can select possibly by using Buttons or images buttons with these pictures on the buttons. What ever you want to use.
The Computers choice is displayed.
A winner is selected according to the following rules:
If one player chooses rock and the other player chooses scissors, then rock wins. (The rock smashes the scissors.)
If one player chooses rock and the other player chooses paper, then paper wins. (The paper covers the rock.)
If one player chooses paper and the other player chooses scissors, then scissors wins. (The scissors cut paper.)
If both players make the same choice, the game must be played again to determine a winner.
Be sure to modularize your code into methods that perform the major tasks of this program. Like playGame(), or readUserChoice(), or determineWinner().

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!