Question: java thank you! Pig is a traditional dice jeopardy game. Players take turns, starting with a randomly-chosen player. On their turn a player rolls a




java
thank you!
Pig is a traditional dice jeopardy game. Players take turns, starting with a randomly-chosen player. On their turn a player rolls a single 6-sided die 1 or more times. After each roll, the player has a choice: hold Stop rolling and add the total of al numbers rolled this turn to their score, or roll Roll the die again. If the player rolls a 1, their turn ends and they score 0 for the turn. Points scored on previous are preserved. A player's turn ends when they roll a one or choose to hold. The first player to reach 100 points is the winner. Pig PigGame WINNING SCORE int 100 fread-only) +main(StringD): void + addPlayers(theGame : PigGame, stdin: Scanner): void +addPla players: ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
