Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed 

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

4. The average person is by nature resistant to change.

Answered: 1 week ago