The rules to this game are as follows:
- First you must roll the dice. In this game this is done by typing 'Roll' and hitting Enter.
- You are then presented with 9 tiles labelled one to nine. You must choose either one or more numbers which add up to the total number you rolled.
For example if you roll a 9, you can choose tiles 2 and 7, or you could just choose tile 9 itself.
You choose these tiles by entering the numbers you want to pick in the format '2 7' or '9' and hitting Enter.
- The objective of the game is to lower as many of the tiles as you can before you run out of moves, if you successfully lower all of the tiles you have 'shut the box'.
You can either consider your score to be the lowest total number of tiles left at the end, or the lowest total sum of all the remaining tiles when they are added together.
Both numbers are presented to you when you type 'End game' and hit Enter.
-You will then be presented with the option to either 'restart', which starts the game over with fresh tiles, or 'exit', which will stop the running Python Script.