Question
Involves a while loop and conditionals in JAVA Rules for the game: In the game of Craps, players roll a pair of dice. Only the
Involves a while loop and conditionals in JAVA Rules for the game: In the game of Craps, players roll a pair of dice. Only the sum of the spots matters: a number between 2 and 12. The roller does the rolling. Below, win or loss refers to the roller. Roller rolls two dice to get the first sum If the first sum is 2, 3, or 12, roller loses Otherwise, if the first sum is 7 or 11, roller wins Otherwise, the first sum becomes the point Now keep rolling again and again: Roller rolls two dice to get the new sum If the new sum equals the point, roller wins Otherwise if the new sum equals 7, roller looses Otherwise roller rolls again The above is the simplest form of street craps. Craps.java
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