Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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