Craps is a game played with two dice. Each die has six faces numbered 1 through 6. You roll the dice and sum the numbers on the two upper faces of the dice. The first roll of the dice in a craps round...



Craps is a game played with two dice. Each die has six faces numbered 1 through 6. You roll the dice and sum the numbers on the two upper faces of the dice. The first roll of the dice in a craps round is called the “come out roll.” In this variation of the game, if the come out roll is 2, 3, or 12—called craps—you lose. If the roll is 7 or 11—called natural—you win. If the roll is another value—that is, 4, 5, 6, 8, 9, or 10—that sum becomes the point. You continue to roll the dice until either a 7 is rolled (in which case you lose) or the same point value is rolled (in which case you win) or this was your fourth roll (the original roll and up to three more rolls). In the latter case, you pass the dice to the next player. Write a program that plays two-player craps, where the program is one player and the user is the other. Continue play until one player either wins or loses.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here