Write a program in java that will simulate a basic game of


Scenario:

The Pass Line is the main bet in craps. The Pass Line bet starts a new round. Place your bet (in $5 increments). The shooter then rolls a pair of dice. The first roll of a round is called the Come Out roll, and here's what happens depending on what is rolled:

7 or 11, you win. If you win the dealer will pay you the amount of your bet. (If you bet a $5 chip, they'll give you another $5 chip.) The shooter then rolls another Come Out roll.

2, 3, or 12, you lose. If you lose, then they'll take your chip away. The shooter then rolls another Come Out roll. 4,5,6,8,9,10, Enter the Point round.

If you didn't win or lose right away then you go to the Point round, and the dealer marks the number that was rolled (4,5,6,8,9,or 10). That number is called the Point. You win if the shooter rolls the Point again, and you lose if a 7 is rolled first. Rolling a 7 before rolling the point again is called sevening out.

QUESTION

Write a program in java that will simulate a basic game of Craps. Ask the user for their starting money amount. Begin the game by asking for the bet ($5 increments only). The computer will simulate rolling the dice by using the random number generator (1-6). Show the values of each die. Determine if you win, lose or go to the Point round. Continue to roll the dice until you win or lose. Add or subtract the bet from the user’s money. If the user has at least $5, ask if they would like to play again. The program will end when the user wants to quit or does not have enough money left.

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Write a program in java that will simulate a basic game of
Reference No:- TGS0593271

Expected delivery within 24 Hours