Question: write a program that will allow the user to play either two rounds or four rounds of the popular dice game. This game program must

write a program that will allow the user to play either two rounds or four rounds of the popular dice game. This game program must ask the user to determine whether to play this game with two rounds or four rounds before rolling the dice.

The rules of craps are as follows:

A player rolls two dice.

  • If the sum of dice is either 2, 4 or 7 on the first throw, the player wins.
  • If the sum is 9 on the first throw, the player loses.
  • If the sum of the two dice does not belongs to the winning numbers or the losing number, then it becomes the players target number on the first throw.
  • To win, the player must continue rolling the dice until a roll matches to this target number.

Hello, I tried writing this code but the results I get don't give me the 2 rounds and 4 rounds . i was hoping you could help me write this in PHYTHON? thank you.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!