Question: Please write a C# program that allows one user to play Rock-Paper-Scissors with computer. The user will pick a move (Rock, Paper or Scissors) from
Please write a C# program that allows one user to play Rock-Paper-Scissors with computer. The user will pick a move (Rock, Paper or 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 or not you won the game. The game is tie if both players pick the same move. As the game goes on, 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 both of the current win/lose message and the computer's move. Interface Example: RPS.png Specifications: Input: Three Radio Buttons for users move. Random number generated for computers move (see Random number generator section) Output: Two labels for players' scores One label for computers move One label for win or lose message Processing: One play button Use CheckedChanged Event for all the Radio buttons to clear out the label for computers move and the label for win and lose message Win or lose logic of the game (9 possibilities): one point per win. Random number generator: The following codes will create one number randomly from 1, 2 or 3 and assign it to the variable num. You can use the number 1, 2 or 3 to determine the computers move. (1 = Rock, 2 = Paper, 3 = Scissors) int num = 0; Random rnd = new Random(); num = rnd.Next(1, 4);
Please include the designer code made when creating the table. I have the code just need the table. Thanks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
