Answered step by step
Verified Expert Solution
Link Copied!

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:

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

x-3+1, x23 Let f(x) = -*+3, * Answered: 1 week ago

Answered: 1 week ago

Question

13-1 How does building new systems produce organizational change?

Answered: 1 week ago

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago