Shut the Box

Roll the dice, then close any of the flaps numbered one to nine that add up to the roll. Keep going until nothing still open matches what you have thrown. Shutting the whole box is the perfect game, and it rarely happens.

How to play

One roll usually offers several ways to spend it: a nine closes the nine on its own, or the four and the five, or the one, three and five.

  1. Read the roll The total to make is written under the dice.
  2. Tap flaps to select them Tap one again to raise it back up.
  3. Hit the total exactly They close by themselves and the dice roll again.
Full instructions

In depth

How to play Shut the Box and close every flap

Shut the Box is a dice game traditionally played on a wooden tray with numbered flaps that fold down when you close them. You roll the dice and then close any combination of open flaps that adds up to the total. Keep rolling until every flap is shut or no combination of the remaining flaps can match the roll. The luck is in the dice and the skill is in choosing which flaps to close. A perfect game, where every single flap goes down, is rare enough to be satisfying and common enough to be worth chasing. This guide covers the rules, the controls, the three box variants, and the thinking that turns a good roll into a winning streak.

Screenshot: How to play Shut the Box
How to play Shut the Box as it appears when the page opens.

Rules of the game

The box starts with all numbered flaps standing up. On the nine-flap box, those are one through nine. You roll two dice and see the total. Then you close any combination of standing flaps whose values add up to exactly that total. A roll of eight can be closed by the eight alone, by the three and five together, by the one, three, and four, or by any other group that sums to eight. Once you choose your flaps and they add up, they fold down and the dice roll again automatically.

The game ends in one of two ways. If every flap is closed, the box is shut and you win with a perfect score of zero. If no combination of the remaining open flaps can match the dice total, the game stops and your score is the sum of all flaps still standing. A lower score is better, and zero is the target.

Controls and interface

The board is drawn on a canvas that looks like a wooden box. Two dice appear at the top with the total written below them. The numbered flaps sit in a row beneath the dice. Tap or click a flap to select it. Selected flaps light up in gold. Tap a selected flap again to deselect it. When your selected flaps add up to exactly the roll, they close automatically and the dice roll again.

If you select flaps that exceed the total, a message warns you that the sum is too high. Deselect one to bring the total back down. The status bar above the board shows the current roll, the sum of your selected flaps, and the total of all flaps still open. On a phone, the box scales to fit the screen and the flaps are large enough to tap comfortably.

The three box variants

The Box selector offers three options. The first is a nine-flap box with the traditional single-die rule: once every flap still standing is six or lower, you switch from two dice to one die. This is the classic pub game variant, and the single-die phase is what makes shutting the box a realistic goal rather than a fantasy. The second is a nine-flap box with two dice for the entire game. This is harder because you can never roll lower than two, and a lone flap of one can only be closed as part of a larger combination.

The third option is a twelve-flap box, with flaps numbered one through twelve and two dice throughout. The twelve-flap variant is the most challenging because the higher numbers are hard to close and the total of all twelve flaps is seventy-eight. The wider range of flap values creates more interesting choices on each roll but makes a perfect game extremely unlikely.

Strategy: close the big numbers first

The single most important habit is closing the high-numbered flaps as early as possible. A nine can only be closed by a roll of nine, or by giving up several small flaps to make nine. If the nine is still standing late in the game and you roll a nine, you can close it cleanly. But if the nine is standing and you roll a seven, the nine is useless and you need other flaps to match.

Small flaps like one, two, and three are valuable because they combine with almost any total. A one can be added to any group to bump the sum by one, which gives you flexibility on nearly every roll. Closing these small flaps early removes that flexibility. As a general rule, when you have a choice between closing one large flap and closing two small flaps that add up to the same total, close the large one and keep the small ones for later.

Strategy: reaching the single-die phase

On the nine-flap box with the traditional rule, the game switches to a single die once nothing above six is open. A single die rolls between one and six, and with only flaps one through six remaining, every possible roll can be matched by a single flap. This means that if you reach the single-die phase with all six low flaps still standing, you are guaranteed to close at least one flap on every roll from that point forward.

Getting to the single-die phase is the most reliable route to shutting the box. Focus your early rolls on eliminating the seven, eight, and nine as quickly as you can. Once those three are down, the game shifts in your favor. Even if you do not shut the box completely, your final score will be low because only small numbers remain.

Strategy: reading the odds

With two dice, some totals are much more likely than others. Seven is the most common roll, appearing in six out of thirty-six combinations. Six and eight each appear five times. Two and twelve are the rarest, each appearing only once. This matters when you have a choice. If closing the seven leaves the twelve standing, you may never see a twelve again. If closing the seven removes it from a future combination, consider whether the remaining flaps can still cover the more common totals.

Late in the game, with only a few flaps open, you can count the exact rolls that will end the game. If flaps three and five are all that remain, you need a roll of eight, three, or five. With two dice, eight appears five times out of thirty-six, three appears twice, and five appears four times. That gives you an eleven-in-thirty-six chance per roll of making progress, roughly thirty percent.

Common mistakes to avoid

The most frequent mistake is closing small flaps when a single large flap would match the roll. If you roll a seven and both the seven and the three-plus-four are available, closing the seven is almost always better. The seven can only be matched by a total of seven, while the three and four can contribute to many different totals on future rolls.

Another common error is ignoring the flap of one. On the two-dice variants, a roll of one is impossible. The one can only be closed as part of a combination, such as one plus six to make seven. If you close the six early, the one may become stranded with no way to incorporate it into a future roll. Keep an eye on which flaps the one can pair with, and avoid closing those partners until the one has gone down.

A third mistake is rushing to close flaps without thinking ahead. It is tempting to snap down whatever matches the roll, but pausing for a moment to consider which flaps you might need on future rolls often leads to a better outcome. The game does not have a timer, so there is no cost to thinking.

Scoring and tracking your best

Your score is the sum of all flaps still standing when the game ends. Zero means you shut the box completely, which is the perfect result. Any other score represents the value you could not close. The game tracks your best score for each box variant and shows it in the stats bar. A best score of zero on the traditional box is a genuine accomplishment, and achieving it on the twelve-flap box is a rare event worth celebrating.

Because the dice are random, there will be games where no sequence of choices can avoid a poor score. The skill is in making the right choice given the roll you received. Over many games, better choices produce lower average scores even though individual games will sometimes end badly.

Privacy and how the game runs

The entire game runs inside your browser. No rolls are sent to a server, no data leaves your device, and there is no account to create. Your best score is stored in local storage on this device only and will not follow you to a different computer. Once the page has finished loading, you can disconnect from the internet and the game will continue to work without any change.

Help

How to play Shut the Box

One roll usually offers several ways to spend it: a nine closes the nine on its own, or the four and the five, or the one, three and five. Which of those you take decides what is still reachable later. Scoring counts the total left standing, so leaving the small numbers beats leaving the large ones, and play stops the moment no combination of standing flaps makes the roll.

Read the roll

The total to make is written under the dice.

Tap flaps to select them

Tap one again to raise it back up.

Hit the total exactly

They close by themselves and the dice roll again.

Keep the small ones useful

Small numbers can be combined in many ways.

Shut the box

Every flap down is a perfect game.

Runs on your device

The whole game is played inside this page. Nothing is uploaded, there is no account, and your best score is stored in this browser only. Once the page has loaded it works offline.

Good to know

Take the big numbers early

A 9 can only be closed by a 9 or by a combination that uses up several small flaps. Getting the large ones down while you still have plenty of choices leaves you flexible later.

Two dice cannot roll less than two

While the 1 is still standing on its own it can only go as part of a bigger total, so do not save it for a roll of one that will never come.

The single die is worth reaching

On the easy box, once everything above six is down you roll one die instead of two. Getting there is the usual route to shutting the box.

Count what is left, not what is down

Your score is the sum of the flaps still standing, so leaving 1 and 2 is far better than leaving a lone 9 even though it is fewer flaps.

Common questions

How many flaps can I close at once?
Any number of them, as long as they add up to exactly the roll. Three small ones counts just as well as one big one.
When do I roll one die instead of two?
On the easy box, once every flap still standing is 6 or less. It is the traditional rule and it is what makes a perfect game realistic.
How is the score worked out?
It is the total of the flaps still standing when you get stuck, so lower is better and zero means the box is shut.
What happens if I cannot make the roll?
The game ends there. The board checks every combination of the standing flaps, so if it says there is none, there is none.
Is it free?
Yes — no account, no limit on how many games you play, and no ads inside the game area itself. Ads on the page around it pay for the site.
Does it work on a phone?
Yes. Tap the flaps, and the box scales to fit the screen.
Where is my best score kept?
In your browser on this device. It is never sent anywhere and will not follow you to another computer.