Shut The Box

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.

This game was personal project I made to help myself better understand all of the different tools available in Python. It is based on the dice-based board game called 'Shut The Box'.
This project uses while loops, inputs, if/else, functions, lists and the imported 'random' library to simulate rolling the dice and then choosing a tile. If all tiles are removed/cleared then the game is won. If you think you have no moves left and end the game it then calculates your score, in both the total of the remaining numbers and the total number of tiles left.