Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java: Ass 0 2 _ Craps 1 . Implement a program that simulates the game of Craps. Use IntelliJ and if directed GitHub for source
Java: AssCraps
Implement a program that simulates the game of Craps. Use IntelliJ and if directed GitHub
for source control. The computer will display the rolls of the game using random numbers to
generate them and will prompt the user to play again. In addition to the die result. The
computer will display an interpretation of the results for each roll.
The Rules of the Game:
a There is an initial roll of dice resulting in a sum of
i If the sum is or it is called "craps" or "crapping out" and the game is
over with a loss.
ii If the sum is or it is called a natural and the game is over with a win.
iii. For all other values, the sum becomes the point and the user makes
subsequent rolls until they either throw a in which case they loose or they
make the point sum in which case they win.
b After a win or loss the next player rolls the die for a new game. In our simulation, the
program will simply ask the user if they want to continue to play.
For each roll show the value for each die and the sum.
a For case i or ii above, indicate that the user either crapped out or won with a natural
and then prompt to play again.
b For case iii indicate that the sum is now the point. For each subsequent roll indicate
the status of the result:
i Trying for point
ii Made point and won. Prompt user to play again.
iii. Got a seven and lost Prompt user to play again.
EMBED SCREEN SHOTS OF NETBEANS HERE SHOWING YOUR PROGRAM
RUNS: Include at least the options above i iii
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