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

 This is my code but it seems not to work it
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 I press Q it just prints out the same program repeatedly nonstop is there a way you guys can modify my code to run perfectly fine my code is here
gets the random dice numbers and executes well if you play but

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

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!