Big Pig: Sample #1235

Notice that it’s possible to get a "Big Pig!"" on a player’s first roll and your turn immediately ends. This happens to the computer a lot of times in this example.

$ python3 pig.py
* BIG PIG *

Welcome to Big Pig, the dice rolling game where players try to be the
first get 100 points! Players (you and the computer) will take turns
rolling two dice as many times as they want, adding all roll results to
a running total. Players lose their gained score for the turn if they
roll a 1.


--------------------------------------------------
Player has 0 and computer has 0
What do you want to do: [r]oll or [h]old? roll
human rolled [6, 4], current round score: 10
What do you want to do: [r]oll or [h]old? roll
human rolled [5, 5], current round score: 30
What do you want to do: [r]oll or [h]old? hold

--------------------------------------------------
Player has 30 and computer has 0
computer rolled [4, 4], current round score: 16
computer rolled [2, 6], current round score: 24
computer holds.

--------------------------------------------------
Player has 30 and computer has 24
What do you want to do: [r]oll or [h]old? roll
human rolled [3, 6], current round score: 9
What do you want to do: [r]oll or [h]old? roll
human rolled [6, 4], current round score: 19
What do you want to do: [r]oll or [h]old? roll
human rolled [2, 5], current round score: 26
What do you want to do: [r]oll or [h]old? hold

--------------------------------------------------
Player has 56 and computer has 24
computer rolled [1, 4], current round score: 0
Big pig!

--------------------------------------------------
Player has 56 and computer has 24
What do you want to do: [r]oll or [h]old? roll
human rolled [3, 4], current round score: 7
What do you want to do: [r]oll or [h]old? roll
human rolled [3, 5], current round score: 15
What do you want to do: [r]oll or [h]old? roll
human rolled [4, 6], current round score: 25
What do you want to do: [r]oll or [h]old? hold

--------------------------------------------------
Player has 81 and computer has 24
computer rolled [3, 1], current round score: 0
Big pig!

--------------------------------------------------
Player has 81 and computer has 24
What do you want to do: [r]oll or [h]old? roll
human rolled [3, 6], current round score: 9
What do you want to do: [r]oll or [h]old? roll
human rolled [2, 6], current round score: 17
What do you want to do: [r]oll or [h]old? r
human rolled [2, 6], current round score: 25
What do you want to do: [r]oll or [h]old? h

--------------------------------------------------
Player has 106 and computer has 24
computer rolled [4, 1], current round score: 0
Big pig!
Human wins [106, 24]!