$ python3 pips.py
Welcome to the game of pips! Here are the rules
Pips is a dice game between you and the computer. You will take turns
rolling two dice. In a single turn, you can roll the dice as many times
as you want. The total of the two dice is added to your turn score.
However, if either die shows a 1, your score for that turn is 0 and
your turn ends immediately ends. If you choose to stop rolling,
your score for that turn is added to your total score and the computer
takes its turn. Once someone reaches 100 points, the game ends and the
player with the highest score wins.
---------------SCORE---------------
You: 0 Computer: 0
-----------------------------------
You rolled 3 and 2
Your total so far is 5
Do you want to roll again? (y/n): y
You rolled 4 and 6
Your total so far is 15
Do you want to roll again? (y/n): hmm
Please answer with 'y' or 'n'.
Do you want to roll again? (y/n): y
You rolled 4 and 5
Your total so far is 24
Do you want to roll again? (y/n): n
You scored 24 this turn
Computer rolled 4 and 6
Computer rolled 6 and 1
Computer scored 0 this turn
---------------SCORE---------------
You: 24 Computer: 0
-----------------------------------
You rolled 1 and 3
You scored 0 this turn
Computer rolled 2 and 1
Computer scored 0 this turn
---------------SCORE---------------
You: 24 Computer: 0
-----------------------------------
You rolled 5 and 4
Your total so far is 9
Do you want to roll again? (y/n): y
You rolled 4 and 3
Your total so far is 16
Do you want to roll again? (y/n): y
You rolled 1 and 4
You scored 0 this turn
Computer rolled 5 and 4
Computer rolled 5 and 5
Computer rolled 5 and 2
Computer rolled 2 and 2
Computer scored 30 this turn
---------------SCORE---------------
You: 24 Computer: 30
-----------------------------------
You rolled 3 and 2
Your total so far is 5
Do you want to roll again? (y/n): y
You rolled 5 and 5
Your total so far is 15
Do you want to roll again? (y/n): y
You rolled 4 and 1
You scored 0 this turn
Computer rolled 6 and 5
Computer rolled 6 and 3
Computer rolled 1 and 5
Computer scored 0 this turn
---------------SCORE---------------
You: 24 Computer: 30
-----------------------------------
You rolled 5 and 3
Your total so far is 8
Do you want to roll again? (y/n): y
You rolled 2 and 3
Your total so far is 13
Do you want to roll again? (y/n): y
You rolled 1 and 4
You scored 0 this turn
Computer rolled 2 and 2
Computer rolled 3 and 6
Computer rolled 1 and 2
Computer scored 0 this turn
---------------SCORE---------------
You: 24 Computer: 30
-----------------------------------
You rolled 3 and 6
Your total so far is 9
Do you want to roll again? (y/n): y
You rolled 4 and 2
Your total so far is 15
Do you want to roll again? (y/n): y
You rolled 3 and 6
Your total so far is 24
Do you want to roll again? (y/n): y
You rolled 6 and 1
You scored 0 this turn
Computer rolled 6 and 2
Computer rolled 6 and 3
Computer rolled 3 and 1
Computer scored 0 this turn
---------------SCORE---------------
You: 24 Computer: 30
-----------------------------------
You rolled 4 and 4
Your total so far is 8
Do you want to roll again? (y/n): y
You rolled 1 and 4
You scored 0 this turn
Computer rolled 1 and 1
Computer scored 0 this turn
---------------SCORE---------------
You: 24 Computer: 30
-----------------------------------
You rolled 1 and 1
You scored 0 this turn
Computer rolled 1 and 4
Computer scored 0 this turn
---------------SCORE---------------
You: 24 Computer: 30
-----------------------------------
You rolled 3 and 6
Your total so far is 9
Do you want to roll again? (y/n): y
You rolled 4 and 6
Your total so far is 19
Do you want to roll again? (y/n): y
You rolled 3 and 5
Your total so far is 27
Do you want to roll again? (y/n): n
You scored 27 this turn
Computer rolled 6 and 1
Computer scored 0 this turn
---------------SCORE---------------
You: 51 Computer: 30
-----------------------------------
You rolled 6 and 5
Your total so far is 11
Do you want to roll again? (y/n): y
You rolled 2 and 4
Your total so far is 17
Do you want to roll again? (y/n): y
You rolled 6 and 3
Your total so far is 26
Do you want to roll again? (y/n): n
You scored 26 this turn
Computer rolled 1 and 4
Computer scored 0 this turn
---------------SCORE---------------
You: 77 Computer: 30
-----------------------------------
You rolled 4 and 4
Your total so far is 8
Do you want to roll again? (y/n): y
You rolled 5 and 6
Your total so far is 19
Do you want to roll again? (y/n): y
You rolled 1 and 2
You scored 0 this turn
Computer rolled 6 and 1
Computer scored 0 this turn
---------------SCORE---------------
You: 77 Computer: 30
-----------------------------------
You rolled 3 and 3
Your total so far is 6
Do you want to roll again? (y/n): y
You rolled 3 and 6
Your total so far is 15
Do you want to roll again? (y/n): y
You rolled 4 and 5
Your total so far is 24
Do you want to roll again? (y/n): n
You scored 24 this turn
Computer rolled 1 and 2
Computer scored 0 this turn
---------------SCORE---------------
You: 101 Computer: 30
-----------------------------------
You win!