Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Craps Simulator Craps is a popular dice game played in casinos, and my favorite casino game. Write a program to play craps as follows:
Craps Simulator Craps is a popular dice game played in casinos, and my favorite casino game. Write a program to play craps as follows: Roll 2 standard dice (faces values 1-6). The value of the roll is the sum of the two dice. The first roll is called the "Come Out" roll. If the come out roll is a 7 or 11, you win, but if it's a 2,3 or 12 you lose. If any other number is rolled, that number is then called the Point. The object for the player is to keep rolling the dice hoping to get the same number as the point to win. If, in this process, they roll a 7 then this is called 'craps' and the player losses. Example 1: You rolled a 6. Point is 6. You rolled a 10. You rolled a 4. You rolled a 3. You rolled a 8. You rolled a 6. You Win! Example 2: You rolled a 8. Point is 8. You rolled a 6. You rolled a 7. Craps. You lose. Example 3: You rolled a 7. You Win! Example 4: You rolled a 3. You lose.
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