Question: A player rolls two dice. Each die has six faces. These faces contain 1 , 2 , 3 , 4 , 5 , and 6
A player rolls two dice. Each die has six faces. These faces contain and
spots. After the dice have come to rest, the sum of the spots on the two upward
faces is calculated. If the sum is or on the first throw, the player wins. If the
sum is or on the first throw called "craps" the player loses ie the "house"
wins If the sum is or on the first throw, then the sum becomes the
player's "point." To win, you must continue rolling the dice until you "make your
point." The player loses by rolling a before making the point.
Write a program that implements a craps game according to the above rules. The
game should allow for wagering. This means that you need to prompt that user for an
initial bank balance from which wagers will be added or subtracted. Before each roll
prompt the user for a wager. Once a game is lost or won, the bank balance should be
adjusted. As the game progresses, print various messages to create some "chatter"
such as "Sorry, you busted!", or Oh you're going for broke, huh?", or Aw cmon, take
a chance!", or "You're up big, now's the time to cash in your chips!"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
