Question
Using C# programming language, you are required to create a game that plays the rockpaperscissors. The user bets 10 dollars on the Rockpaperscissors game. The
Using C# programming language, you are required to create a game that plays the rockpaperscissors. The user bets 10 dollars on the Rockpaperscissors game. The payouts are defined as follows:
If the user wins, the user gets 2x the bet.
Otherwise, the user loses the bet.
Use a random number generator Random rnd = new Random(); [your variable] = rnd.Next(1, 4);
The user starts the game with $100
The game continues until:
a. the user is out of money
b. or the user chooses to quit the game by entering 0
c. or either the user or the computer wins 4 games first.
Develop the program using two files (in addition to your main program file, create your own Class, Game).
Use selection statement(s) and loop statement(s).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started