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

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!