Question: Write a C# program that allows one user to play Rock-Paper-Scissors with computer. The user will pick a move (Rock Paper Scissors) from 3 radio

Write a C# program that allows one user to play Rock-Paper-Scissors with computer.

The user will pick a move (Rock Paper Scissors) from 3 radio buttons and click the play button to play the game. The application will use random number generator to pick a move for the computer. Then, the application display the computer's move and also display whether you won or lost the game, or the game is tie if both moves are the same.

The application must be able to record the score for number of wins for both players. Also, when you change your move, the application must clear out the current win/lose message and the computer's move.

The following codes will create one number randomly from 1, 2 or 3 and assign it to the variable num.

int num = 0; Random rnd = new Random(); num = rnd.Next(1, 4);

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!