Pig example 1

User input is in bold. Note that this examples shows both players starting at 80 to keep the game shorter.

$ python3 pig.py
What is the first player's name? Rich
What is the second player's name? Spencer
-------
Rich: 80
Spencer: 80
It's your turn, Rich
Rich rolled a 4
Rich earned 4 points so far this turn
Do you want to roll again? yes
Rich rolled a 2
Rich earned 6 points so far this turn
Do you want to roll again? yes
Rich rolled a 1
You pigged out!
-------
Rich: 80
Spencer: 80
It's your turn, Spencer
Spencer rolled a 5
Spencer earned 5 points so far this turn
Do you want to roll again? yes
Spencer rolled a 2
Spencer earned 7 points so far this turn
Do you want to roll again? yes
Spencer rolled a 5
Spencer earned 12 points so far this turn
Do you want to roll again? yes
Spencer rolled a 4
Spencer earned 16 points so far this turn
Do you want to roll again? no
-------
Rich: 80
Spencer: 96
It's your turn, Rich
Rich rolled a 5
Rich earned 5 points so far this turn
Do you want to roll again? yes
Rich rolled a 5
Rich earned 10 points so far this turn
Do you want to roll again? yes
Rich rolled a 3
Rich earned 13 points so far this turn
Do you want to roll again? yes
Rich rolled a 3
Rich earned 16 points so far this turn
Do you want to roll again? yes
Rich rolled a 2
Rich earned 18 points so far this turn
Do you want to roll again? yes
Rich rolled a 4
Rich earned 22 points so far this turn
Do you want to roll again? no
-------
Rich: 102
Spencer: 96
It's your turn, Spencer
Spencer rolled a 2
Spencer earned 2 points so far this turn
Do you want to roll again? yes
Spencer rolled a 5
Spencer earned 7 points so far this turn
Do you want to roll again? no
Final scores
-----------
Rich: 102
Spencer: 103
Spencer wins!