Question: Using C , write a simulated dice game. The game requires two six - sided dice. The goal of the game is to be the

Using C, write a simulated dice game. The game requires two six-sided dice. The goal of the game is to be the
first player to reach 100 points.
On a turn, a player rolls the die repeatedly until either:
A 1 is rolled
o If a 1 is rolled on a single die, that players turn ends and no points are earned for the turn.
o However, if snake eyes(or double 1s) are rolled, it earns 25 points.
All other doubles earn twice the value on the dice.
The player chooses to hold (stop rolling).
o If the player chooses to hold, all the points rolled during that turn are added to his/her score.
Scoring Examples:
Sherri rolls a 3 and a 4 then decides to continue. She then chooses to continue rolling
6 & 6,6 & 4,5 & 6,1 & 2. Because she rolled a 1, Sherri's turn ends and she earns 0 points.
Craig rolls a 6 & 2 and decides to continue. He then chooses to continue rolling 3 & 4,5 & 5 and then decides
to hold. Craig earns 35 points for this turn: 6+2+3+4+2*(5+5)=35

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 Programming Questions!