Question: This is my code but it seems not to work it gets the random dice numbers and executes well if you play but then once
Craps is a popular dice game played in casinos. Write program to play variation of the game, as follow: Roll two dice. Each dice has size faces representing values 1, 2,... and 6, respectively. Check the sum of the two dice. If sum is 2, 3, or 12 (called craps), you lose; if the sum is 7 or 11 (called natural), you win; if the sum is another value, a point is established. Continue to roll the dice until either a 7 or the same value is rolled. If 7 is rolled, you lose. Otherwise, you win. Your program acts asla single player. NOTE: Use method(s)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
