At the beginning of the game, both players have 0 total points. In each round, player 1 takes a turn, and player 2 takes a turn. The game ends if at the end of a round, at least one of the players has 100 or more points. The winner is the player with the most total points.
The player begins a turn with 0 turn points. The player rolls a six sided die. If the die roll produces a 1, then the player’s turn pointsare removed, and their turn is over. If any other number is rolled (2-6), the roll is added to the player’s turn points. The player now chooses whether to quit the turn, or continue the turn. If the player quits the turn, their turn points are added to their total points. If the player continues, then the player rolls the die again, and follows the above outline based on the value rolled.
In this assignment, you will create a computer program that will allow two users to play the Game of Pig against each other.
Click here for more details of this assignment