Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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
image text in transcribed
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

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

More Books

Students also viewed these Databases questions

Question

consider how qualitative data can add value to your research;

Answered: 1 week ago

Question

consider the use of electronically obtained qualitative data;

Answered: 1 week ago