Welcome to the dice game Pig. The game is played between two players. Players alternate taking turns. During a turn a player rolls a six sided die. If the result of the roll is a 1 the player's score for the turn is 0 and it is the next player's turn. If the result of the die is not a 1 the result is added to the player's score for the turn. After the first roll of a turn a player must decide to HOLD or ROLL AGAIN. If a player HOLDs their score for the turn is added to their total score. if a player ROLLs AGAIN they roll the die again. The same rules apply to the second and subsequent rolls in the turn: a 1 reduces the player's score for the turn to 0 and the turn is over. If the die is not 1 the result is added to the player's score for the turn and they must decide to HOLD or ROLL AGAIN. The first player to reach a total of 100 wins the game. This program simulates the results of different strategies for the game. RUNNING SAMPLE GAMES WITH OUTPUT ***** START OF GAME ***** START OF TURN NUMBER 1 It is player 1's turn. player 1 rolled a 4 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 4 If you HOLD now scores will be: player 1: 4 player 2: 0 DECISION - ROLL AGAIN player 1 rolled a 2 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 6 If you HOLD now scores will be: player 1: 6 player 2: 0 DECISION - ROLL AGAIN player 1 rolled a 3 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 9 If you HOLD now scores will be: player 1: 9 player 2: 0 DECISION - ROLL AGAIN player 1 rolled a 2 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 11 If you HOLD now scores will be: player 1: 11 player 2: 0 DECISION - ROLL AGAIN player 1 rolled a 3 on roll number 5 Number of rolls this turn: 5 Score for turn so far: 14 If you HOLD now scores will be: player 1: 14 player 2: 0 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 6 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 2 It is player 2's turn. player 2 rolled a 5 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 5 If you HOLD now scores will be: player 1: 0 player 2: 5 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 10 If you HOLD now scores will be: player 1: 0 player 2: 10 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 15 If you HOLD now scores will be: player 1: 0 player 2: 15 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 3 It is player 1's turn. player 1 rolled a 2 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 2 If you HOLD now scores will be: player 1: 2 player 2: 15 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 2 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 4 It is player 2's turn. player 2 rolled a 3 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 3 If you HOLD now scores will be: player 1: 0 player 2: 18 DECISION - ROLL AGAIN player 2 rolled a 3 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 6 If you HOLD now scores will be: player 1: 0 player 2: 21 DECISION - ROLL AGAIN player 2 rolled a 4 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 10 If you HOLD now scores will be: player 1: 0 player 2: 25 DECISION - ROLL AGAIN player 2 rolled a 2 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 12 If you HOLD now scores will be: player 1: 0 player 2: 27 DECISION - ROLL AGAIN player 2 rolled a 3 on roll number 5 Number of rolls this turn: 5 Score for turn so far: 15 If you HOLD now scores will be: player 1: 0 player 2: 30 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 5 It is player 1's turn. player 1 rolled a 5 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 5 If you HOLD now scores will be: player 1: 5 player 2: 30 DECISION - ROLL AGAIN player 1 rolled a 4 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 9 If you HOLD now scores will be: player 1: 9 player 2: 30 DECISION - ROLL AGAIN player 1 rolled a 4 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 13 If you HOLD now scores will be: player 1: 13 player 2: 30 DECISION - ROLL AGAIN player 1 rolled a 2 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 15 If you HOLD now scores will be: player 1: 15 player 2: 30 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 6 It is player 2's turn. player 2 rolled a 2 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 2 If you HOLD now scores will be: player 1: 15 player 2: 32 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 7 If you HOLD now scores will be: player 1: 15 player 2: 37 DECISION - ROLL AGAIN player 2 rolled a 6 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 13 If you HOLD now scores will be: player 1: 15 player 2: 43 DECISION - ROLL AGAIN player 2 rolled a 2 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 15 If you HOLD now scores will be: player 1: 15 player 2: 45 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 7 It is player 1's turn. player 1 rolled a 4 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 4 If you HOLD now scores will be: player 1: 19 player 2: 45 DECISION - ROLL AGAIN player 1 rolled a 6 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 10 If you HOLD now scores will be: player 1: 25 player 2: 45 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 3 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 8 It is player 2's turn. player 2 rolled a 4 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 4 If you HOLD now scores will be: player 1: 15 player 2: 49 DECISION - ROLL AGAIN player 2 rolled a 6 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 10 If you HOLD now scores will be: player 1: 15 player 2: 55 DECISION - ROLL AGAIN player 2 rolled a 3 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 13 If you HOLD now scores will be: player 1: 15 player 2: 58 DECISION - ROLL AGAIN player 2 rolled a 3 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 16 If you HOLD now scores will be: player 1: 15 player 2: 61 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 9 It is player 1's turn. player 1 rolled a 6 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 6 If you HOLD now scores will be: player 1: 21 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 4 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 10 If you HOLD now scores will be: player 1: 25 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 3 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 13 If you HOLD now scores will be: player 1: 28 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 3 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 16 If you HOLD now scores will be: player 1: 31 player 2: 61 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 10 It is player 2's turn. player 2 rolled a 6 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 6 If you HOLD now scores will be: player 1: 31 player 2: 67 DECISION - ROLL AGAIN player 2 rolled a 2 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 8 If you HOLD now scores will be: player 1: 31 player 2: 69 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 13 If you HOLD now scores will be: player 1: 31 player 2: 74 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 18 If you HOLD now scores will be: player 1: 31 player 2: 79 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 11 It is player 1's turn. player 1 rolled a 3 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 3 If you HOLD now scores will be: player 1: 34 player 2: 79 DECISION - ROLL AGAIN player 1 rolled a 2 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 5 If you HOLD now scores will be: player 1: 36 player 2: 79 DECISION - ROLL AGAIN player 1 rolled a 4 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 9 If you HOLD now scores will be: player 1: 40 player 2: 79 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 4 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 12 It is player 2's turn. player 2 rolled a 1 on roll number 1 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 13 It is player 1's turn. player 1 rolled a 3 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 3 If you HOLD now scores will be: player 1: 34 player 2: 79 DECISION - ROLL AGAIN player 1 rolled a 2 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 5 If you HOLD now scores will be: player 1: 36 player 2: 79 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 3 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 14 It is player 2's turn. player 2 rolled a 6 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 6 If you HOLD now scores will be: player 1: 31 player 2: 85 DECISION - ROLL AGAIN player 2 rolled a 3 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 9 If you HOLD now scores will be: player 1: 31 player 2: 88 DECISION - ROLL AGAIN player 2 rolled a 6 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 15 If you HOLD now scores will be: player 1: 31 player 2: 94 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 15 It is player 1's turn. player 1 rolled a 4 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 4 If you HOLD now scores will be: player 1: 35 player 2: 94 DECISION - ROLL AGAIN player 1 rolled a 3 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 7 If you HOLD now scores will be: player 1: 38 player 2: 94 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 3 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 16 It is player 2's turn. player 2 rolled a 1 on roll number 1 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 17 It is player 1's turn. player 1 rolled a 6 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 6 If you HOLD now scores will be: player 1: 37 player 2: 94 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 2 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 18 It is player 2's turn. player 2 rolled a 5 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 5 If you HOLD now scores will be: player 1: 31 player 2: 99 DECISION - ROLL AGAIN player 2 rolled a 4 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 9 If you HOLD now scores will be: player 1: 31 player 2: 103 DECISION - HOLD - TURN IS OVER FINAL RESULTS: Number of turns: 18 player 1 score: 31 player 2 score: 103 player 2 won the game! ***** START OF GAME ***** START OF TURN NUMBER 1 It is player 1's turn. player 1 rolled a 3 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 3 If you HOLD now scores will be: player 1: 3 player 2: 0 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 2 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 2 It is player 2's turn. player 2 rolled a 6 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 6 If you HOLD now scores will be: player 1: 0 player 2: 6 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 11 If you HOLD now scores will be: player 1: 0 player 2: 11 DECISION - ROLL AGAIN player 2 rolled a 6 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 17 If you HOLD now scores will be: player 1: 0 player 2: 17 DECISION - ROLL AGAIN player 2 rolled a 3 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 20 If you HOLD now scores will be: player 1: 0 player 2: 20 DECISION - ROLL AGAIN player 2 rolled a 2 on roll number 5 Number of rolls this turn: 5 Score for turn so far: 22 If you HOLD now scores will be: player 1: 0 player 2: 22 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 3 It is player 1's turn. player 1 rolled a 3 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 3 If you HOLD now scores will be: player 1: 3 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 2 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 5 If you HOLD now scores will be: player 1: 5 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 5 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 10 If you HOLD now scores will be: player 1: 10 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 3 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 13 If you HOLD now scores will be: player 1: 13 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 2 on roll number 5 Number of rolls this turn: 5 Score for turn so far: 15 If you HOLD now scores will be: player 1: 15 player 2: 22 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 4 It is player 2's turn. player 2 rolled a 1 on roll number 1 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 5 It is player 1's turn. player 1 rolled a 2 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 2 If you HOLD now scores will be: player 1: 17 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 6 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 8 If you HOLD now scores will be: player 1: 23 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 6 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 14 If you HOLD now scores will be: player 1: 29 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 3 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 17 If you HOLD now scores will be: player 1: 32 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 6 on roll number 5 Number of rolls this turn: 5 Score for turn so far: 23 If you HOLD now scores will be: player 1: 38 player 2: 22 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 6 It is player 2's turn. player 2 rolled a 4 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 4 If you HOLD now scores will be: player 1: 38 player 2: 26 DECISION - ROLL AGAIN player 2 rolled a 1 on roll number 2 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 7 It is player 1's turn. player 1 rolled a 3 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 3 If you HOLD now scores will be: player 1: 41 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 6 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 9 If you HOLD now scores will be: player 1: 47 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 5 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 14 If you HOLD now scores will be: player 1: 52 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 2 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 16 If you HOLD now scores will be: player 1: 54 player 2: 22 DECISION - ROLL AGAIN player 1 rolled a 6 on roll number 5 Number of rolls this turn: 5 Score for turn so far: 22 If you HOLD now scores will be: player 1: 60 player 2: 22 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 8 It is player 2's turn. player 2 rolled a 2 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 2 If you HOLD now scores will be: player 1: 60 player 2: 24 DECISION - ROLL AGAIN player 2 rolled a 2 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 4 If you HOLD now scores will be: player 1: 60 player 2: 26 DECISION - ROLL AGAIN player 2 rolled a 4 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 8 If you HOLD now scores will be: player 1: 60 player 2: 30 DECISION - ROLL AGAIN player 2 rolled a 3 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 11 If you HOLD now scores will be: player 1: 60 player 2: 33 DECISION - ROLL AGAIN player 2 rolled a 3 on roll number 5 Number of rolls this turn: 5 Score for turn so far: 14 If you HOLD now scores will be: player 1: 60 player 2: 36 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 9 It is player 1's turn. player 1 rolled a 1 on roll number 1 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 10 It is player 2's turn. player 2 rolled a 4 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 4 If you HOLD now scores will be: player 1: 60 player 2: 40 DECISION - ROLL AGAIN player 2 rolled a 1 on roll number 2 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 11 It is player 1's turn. player 1 rolled a 6 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 6 If you HOLD now scores will be: player 1: 66 player 2: 36 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 2 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 12 It is player 2's turn. player 2 rolled a 1 on roll number 1 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 13 It is player 1's turn. player 1 rolled a 4 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 4 If you HOLD now scores will be: player 1: 64 player 2: 36 DECISION - ROLL AGAIN player 1 rolled a 2 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 6 If you HOLD now scores will be: player 1: 66 player 2: 36 DECISION - ROLL AGAIN player 1 rolled a 5 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 11 If you HOLD now scores will be: player 1: 71 player 2: 36 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 4 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 14 It is player 2's turn. player 2 rolled a 6 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 6 If you HOLD now scores will be: player 1: 60 player 2: 42 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 11 If you HOLD now scores will be: player 1: 60 player 2: 47 DECISION - ROLL AGAIN player 2 rolled a 3 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 14 If you HOLD now scores will be: player 1: 60 player 2: 50 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 19 If you HOLD now scores will be: player 1: 60 player 2: 55 DECISION - ROLL AGAIN player 2 rolled a 6 on roll number 5 Number of rolls this turn: 5 Score for turn so far: 25 If you HOLD now scores will be: player 1: 60 player 2: 61 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 15 It is player 1's turn. player 1 rolled a 2 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 2 If you HOLD now scores will be: player 1: 62 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 2 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 16 It is player 2's turn. player 2 rolled a 5 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 5 If you HOLD now scores will be: player 1: 60 player 2: 66 DECISION - ROLL AGAIN player 2 rolled a 4 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 9 If you HOLD now scores will be: player 1: 60 player 2: 70 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 14 If you HOLD now scores will be: player 1: 60 player 2: 75 DECISION - ROLL AGAIN player 2 rolled a 4 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 18 If you HOLD now scores will be: player 1: 60 player 2: 79 DECISION - ROLL AGAIN player 2 rolled a 1 on roll number 5 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 17 It is player 1's turn. player 1 rolled a 4 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 4 If you HOLD now scores will be: player 1: 64 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 6 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 10 If you HOLD now scores will be: player 1: 70 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 5 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 15 If you HOLD now scores will be: player 1: 75 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 5 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 20 If you HOLD now scores will be: player 1: 80 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 4 on roll number 5 Number of rolls this turn: 5 Score for turn so far: 24 If you HOLD now scores will be: player 1: 84 player 2: 61 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 18 It is player 2's turn. player 2 rolled a 3 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 3 If you HOLD now scores will be: player 1: 84 player 2: 64 DECISION - ROLL AGAIN player 2 rolled a 6 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 9 If you HOLD now scores will be: player 1: 84 player 2: 70 DECISION - ROLL AGAIN player 2 rolled a 6 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 15 If you HOLD now scores will be: player 1: 84 player 2: 76 DECISION - ROLL AGAIN player 2 rolled a 1 on roll number 4 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 19 It is player 1's turn. player 1 rolled a 3 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 3 If you HOLD now scores will be: player 1: 87 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 2 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 5 If you HOLD now scores will be: player 1: 89 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 6 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 11 If you HOLD now scores will be: player 1: 95 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 4 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 20 It is player 2's turn. player 2 rolled a 2 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 2 If you HOLD now scores will be: player 1: 84 player 2: 63 DECISION - ROLL AGAIN player 2 rolled a 2 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 4 If you HOLD now scores will be: player 1: 84 player 2: 65 DECISION - ROLL AGAIN player 2 rolled a 6 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 10 If you HOLD now scores will be: player 1: 84 player 2: 71 DECISION - ROLL AGAIN player 2 rolled a 1 on roll number 4 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 21 It is player 1's turn. player 1 rolled a 5 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 5 If you HOLD now scores will be: player 1: 89 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 5 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 10 If you HOLD now scores will be: player 1: 94 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 4 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 14 If you HOLD now scores will be: player 1: 98 player 2: 61 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 4 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 22 It is player 2's turn. player 2 rolled a 5 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 5 If you HOLD now scores will be: player 1: 84 player 2: 66 DECISION - ROLL AGAIN player 2 rolled a 2 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 7 If you HOLD now scores will be: player 1: 84 player 2: 68 DECISION - ROLL AGAIN player 2 rolled a 2 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 9 If you HOLD now scores will be: player 1: 84 player 2: 70 DECISION - ROLL AGAIN player 2 rolled a 3 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 12 If you HOLD now scores will be: player 1: 84 player 2: 73 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 5 Number of rolls this turn: 5 Score for turn so far: 17 If you HOLD now scores will be: player 1: 84 player 2: 78 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 23 It is player 1's turn. player 1 rolled a 1 on roll number 1 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 24 It is player 2's turn. player 2 rolled a 2 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 2 If you HOLD now scores will be: player 1: 84 player 2: 80 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 7 If you HOLD now scores will be: player 1: 84 player 2: 85 DECISION - ROLL AGAIN player 2 rolled a 6 on roll number 3 Number of rolls this turn: 3 Score for turn so far: 13 If you HOLD now scores will be: player 1: 84 player 2: 91 DECISION - ROLL AGAIN player 2 rolled a 3 on roll number 4 Number of rolls this turn: 4 Score for turn so far: 16 If you HOLD now scores will be: player 1: 84 player 2: 94 DECISION - ROLL AGAIN player 2 rolled a 5 on roll number 5 Number of rolls this turn: 5 Score for turn so far: 21 If you HOLD now scores will be: player 1: 84 player 2: 99 DECISION - HOLD - TURN IS OVER START OF TURN NUMBER 25 It is player 1's turn. player 1 rolled a 2 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 2 If you HOLD now scores will be: player 1: 86 player 2: 99 DECISION - ROLL AGAIN player 1 rolled a 3 on roll number 2 Number of rolls this turn: 2 Score for turn so far: 5 If you HOLD now scores will be: player 1: 89 player 2: 99 DECISION - ROLL AGAIN player 1 rolled a 1 on roll number 3 PIG! Score for turn is 0. TURN IS OVER START OF TURN NUMBER 26 It is player 2's turn. player 2 rolled a 3 on roll number 1 Number of rolls this turn: 1 Score for turn so far: 3 If you HOLD now scores will be: player 1: 84 player 2: 102 DECISION - HOLD - TURN IS OVER FINAL RESULTS: Number of turns: 26 player 1 score: 84 player 2 score: 102 player 2 won the game! RUNING EXPERIMENTS (1,000,000 GAMES EACH) WITH NO OUTPUT player 1 and player 2 stop at 15 points for turn player 1 wins: 539717 player 2 wins: 460283 player 1 and player 2 stop at 5 rolls for turn player 1 wins: 534424 player 2 wins: 465576 player 1 stops at 15 points and player 2 stops at 5 rolls player 1 wins: 502248 player 2 wins: 497752 player 1 stops at 5 rolls and player 2 stops at 15 points player 1 wins: 570804 player 2 wins: 429196