Question: 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:

  1. The player makes a wager.
  2. The player bets on either a winning or a losing roll.
  3. The dice are rolled (values are between 2 and 12 for two die rolls).
    1. If the first roll is a 7 or 11, it is a winning roll.
    2. If the first roll is a 2 (snake eyes) or 12 (box cars), it is a losing roll.
    3. Any other number results in the following:
      1. The original roll is called the point.
      2. The dice are rolled again.
      3. If the new roll matches the point, it is a winning roll.
      4. If the new roll is a 7, it is a losing roll.
      5. This is repeated until either of the previous conditions is met.
  4. Based on the players bet, they will win or lose money.
    1. If the player bet on winning, and it was a winning roll, they gain their wager.
    2. If the player bet on losing, and it was a losing roll, they gain their wager.
    3. Otherwise, the player loses their wager.
  5. If the player still has money, they are asked if they wish to continue.
    1. A no results in the end of the game.
    2. A yes results in repeating steps 1-4.
  6. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!