 # Hold-at-20-or-Goal Turn

Pig is a folk jeopardy dice game with simple rules: Two players race to reach 100 points. Each turn, a player repeatedly rolls a die until either a 1 ("pig") is rolled or the player holds and scores the sum of the rolls (i.e. the turn total). At any time during a player's turn, the player is faced with two decisions:

• roll - If the player rolls a
• 1: the player scores nothing and it becomes the opponent's turn.
• 2 - 6: the number is added to the player's turn total and the player's turn continues.
• hold - The turn total is added to the player's score and it becomes the opponent's turn.

Problem:  Given a player's score, simulate a single turn of Pig where a player rolls until a 1 ("pig") is rolled, or the turn total is greater than or equal to 20, or the score plus the turn total is greater than or equal to 100.

Input Format:  The input is a single integer representing a Pig player score.

Output Format:

• Initially, prompt the user with "Score? ".
• For each roll, print a line with "Roll: " and the random die roll value (1-6).
• After a "pig" roll of 1, or a "hold", print a line with "Turn total: " followed by the turn total.  In the case of a "pig", this turn total is 0.  Then print a line with "New score: " followed by the new score.

Sample Transcript (input underlined):

```Score? 90
Roll: 2
Roll: 3
Roll: 4
Roll: 4
Turn total: 13
New score: 103```

Todd Neller