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 sixsided dice. The goal of the game is to be the
first player to reach points.
On a turn, a player rolls the die repeatedly until either:
A is rolled
o If a is rolled on a single die, that players turn ends and no points are earned for the turn.
o However, if snake eyesor double s are rolled, it earns 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 hisher score.
Scoring Examples:
Sherri rolls a and a then decides to continue. She then chooses to continue rolling
& & & & Because she rolled a Sherri's turn ends and she earns points.
Craig rolls a & and decides to continue. He then chooses to continue rolling & & and then decides
to hold. Craig earns points for this turn:
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
