Question: Write in Java Play the game of Craps. The basic bet made by the shooter in this game is the pass-line bet. To start a
Write in Java Play the game of Craps. The basic bet made by the "shooter" in this game is the pass-line bet. To start a pass-line bet, the shooter makes a "come-out" roll. Roll the pair of dice. If the "come-out" roll is a 2, 3, or 12 that is called "craps" or "crapping out" and the shooter immediately loses. A "come-out" roll of 7 or 11 is a "natural" and the shooter immediately wins. The other possible numbers are the point numbers: 4. 5, 6, 8, 9 and 10. If the shooter rolls one of these numbers on the come-out roll, this establishes the "point". To win. the point number must be rolled again before a seven (7). So, in the case where a "point" is established the shooter rolls over and over until cither the point is rolled (a win) or a seven (7) is rolled (a loss). Using your Periodic class write an application that simulates 100 pass-line bets and output the results of each bet to an output file. Also, keep a running total of how many wins and losses. Output those totals at the end of your run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
