Problem

(Game: craps) Craps is a popular dice game played in casinos. Write a program toplay a var...

(Game: craps) Craps is a popular dice game played in casinos. Write a program to

play a variation of the game, as follows:

Roll two dice. Each die has six faces representing values 1, 2,... , and 6 , respec;tively. Check the sum of the two dice. If the 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 (i.e., 4, 5, 6, 8, 9, or 10), a point is established. Continue until you roll either a 7 (you lose) or the same point value (you win).

Your program acts as a single player. Here are some sample runs:

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT