Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MUST BE DONE IN CSHARP AS A CONSOLE APPLICATION Create a Rock-Paper-Scissors App

ID: 3795913 • Letter: M

Question

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!

Explanation / Answer

Program.cs

==================================================================

game.cs

==========================================================================

player.cs

=======================================================================

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote