Question: You are coding a simple game called Pig. Players take turns rolling a die. The die determines how many points they get. You may get
You are coding a simple game called Pig. Players take turns rolling a die. The die determines how many points they get. You may get points each turn your roll turn points you also have points for the entire game grand points The first player with grand points is
the winner. The rules are as follows:
Each turn, the active player faces a decision roll or hold:
Roll the die. If its is a:
: You lose your turn, no turn total points are added to your
grand total.
: The number you rolled is added to your turn total.
Hold: Your turn total is added to your grand total. Its now the
next players 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
