Create a rock-paper-scissors application create a class to


READ THE INSTRUCTIONS!

MUST BE DONE IN CSHARP AS A CONSOLE APPLICATION

Create a Rock-Paper-Scissors Application

Create a Class to contain the game data and any input or output methods. The main method should contain no Console methods, all functionality should be contained within the class.

The program will ask the user's name, and the number of matches to play. This input needs to be validated as an odd number (in order to avoid ties), with a maximum value of 9.

The individual match results should be stored in an array.

The program will then prompt the user to choose rock, paper or scissors. It will generate a random value for the computer and declare a winner. In the case of a tie, that match will repeat until a winner is found.

After the number of matches specified above the program will provide a game summary for each match and the overall winner. For instance:

Match 1 (Player won) Rocks vs Scissors [after 3 ties] Match 2 (Computer won).... Match 3 (Player won)... Overall winner: Player! Congratulations!

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create a rock-paper-scissors application create a class to
Reference No:- TGS02912365

Expected delivery within 24 Hours