Play Shut the Box, the dice game of shutting numbered tiles, solo or in a three-box race against the computer, with a hint from an exact solver.
Game #-
Open 45
Best -
Boxes shut 0
Roll total -
Chosen 0
| Box | You | Computer |
|---|---|---|
| 1 | - | - |
| 2 | - | - |
| 3 | - | - |
| Total | 0 | 0 |
Press Roll. Choose open tiles that add up to the roll (tap them, or press 1 to 9), then press Shut tiles (or S). Press R to roll, H for a hint, C or Escape to clear your choice. Arrow keys move between tiles. Once tiles 7, 8 and 9 are shut you roll one die. If no tiles add up to the roll, the box is stuck and your score is the tiles still open. Using a hint means that box will not count as a best score.
Every position in this game is a set of open tiles, and a move only ever shuts tiles, so all 512 positions can be solved exactly, smallest first. For each one the solver adds up every possible roll, picks the best set of tiles for each roll, and records the average final score and the chance of shutting the whole box. Hard and the hint use that table. Medium shuts the set with the highest tiles in it. Easy picks any set that adds up.
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
Nine tiles numbered 1 to 9 start open. On your turn press Roll the dice. Choose open tiles that add up to the total of the roll and press Shut tiles. Then roll again.
Pick Solo box to play one box and beat your best, or Race the computer to play three boxes each. The lowest total over the three boxes wins. A race has three computer levels: Easy, Medium and Hard.
Hints. The Hint button shows the best set of tiles for the current roll with a star and a dashed green frame, and says what your average final score would be from there. A box where you used a hint still counts as played, but it never counts as a best score, and a race with a hint is not counted in your wins.
Controls. Tap tiles to choose them. From the keyboard, press 1 to 9 to choose a tile, S to shut the chosen tiles, R to roll, H for a hint and C or Escape to clear your choice. The arrow keys move between tiles, and Enter or Space on a focused tile chooses it. Chosen tiles show a tick, shut tiles are crossed out and striped, so colour is never the only signal. The status line says what happened after every roll and shut. Dice tumble only if your system allows motion, and sound is off until you press the sound button.
Every position in this game is a set of open tiles, and a move only ever shuts tiles. So the value of a position depends only on smaller sets, and the whole game can be solved in one pass, smallest set first. For each of the 512 sets the solver adds up every possible roll (the 11 two-dice totals with their chances out of 36, or the six one-die totals), tries every set of tiles that adds up to the roll, and keeps the best. It records two things for each position: the average final score when you always shut for a low score, and the chance of shutting the box when you always shut for that.
| Claim | How it is checked |
|---|---|
| The list of tile sets for a roll is complete | Compared with a plain recursive enumeration for every position and many totals. A full box and a roll of 9 has exactly 8 ways. |
| The solver is exact | Compared with an unmemoised search over every ordered pair of dice on every position with up to four open tiles (and more), to nine decimal places. |
| A fresh box averages 11.66 | The table says 11.66. A simulation of 20,000 Hard games stays within 0.35 of it. |
| The best chance of shutting the box is 7.4 percent | The table says 7.4 percent. A simulation of 20,000 games that always play for it stays within 1.2 points. |
| Hard beats Medium beats Easy | 6,000 boxes each from the same seeds, ranked by average score. |
| Bad choices change nothing | Wrong sums, shut tiles, empty and out-of-range choices are refused and leave the box as it was. |
| Games always end | 4,000 random games, each finishing in at most 10 rolls with a score equal to the sum of the open tiles. |
Your best score and a few counts (boxes played, boxes shut, races played and won) are small whole numbers kept in your browser under one key. The page address holds the mode, level and game number, so a shared link replays the same dice. Nothing is uploaded and there is no account.
Free to play, no ads, nothing uploaded. These games are original and are not affiliated with any other game or brand.