Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The basic game of craps is very simple. On the first roll of the two dice (the come-out roll), the shooter wins by rolling either
"The basic game of craps is very simple. On the first roll of the two dice (the come-out roll), the shooter wins by rolling either a 7 or 11 (a natural). Rolling craps (2, 3, or 12) loses. Any other number (4, 5, 6, 8, 9, or 10) is called the point. To win, the point number must be rolled before a 7. Winning is also known as passing. If a 7 is rolled before the point number, the shooter has sevened-out and loses." You want to create a method that simulates a game of craps and returns true if the shooter wins the game and false if the house wins. In your main method you should find an estimate of what percentage of time the shooter wins the game, by calling your method many times (try 100,000) and keeping a counter of the number of wins
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