Answered step by step
Verified Expert Solution
Question
1 Approved Answer
It has to be written in C# (C sharp) Please make a game(console application) that has the following rules : The game follows the following
It has to be written in C# (C sharp) Please
make a game(console application) that has the following rules :
The game follows the following rules:
- The player makes a wager.
- The player bets on either a winning or a losing roll.
- The dice are rolled (values are between 2 and 12 for two die rolls).
- If the first roll is a 7 or 11, it is a winning roll.
- If the first roll is a 2 (snake eyes) or 12 (box cars), it is a losing roll.
- Any other number results in the following:
- The original roll is called the point.
- The dice are rolled again.
- If the new roll matches the point, it is a winning roll.
- If the new roll is a 7, it is a losing roll.
- This is repeated until either of the previous conditions is met.
- Based on the players bet, they will win or lose money.
- If the player bet on winning, and it was a winning roll, they gain their wager.
- If the player bet on losing, and it was a losing roll, they gain their wager.
- Otherwise, the player loses their wager.
- If the player still has money, they are asked if they wish to continue.
- A no results in the end of the game.
- A yes results in repeating steps 1-4.
- When the player has no money, or no longer wishes to play, the game ends.
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