Play Sokoban Online
Push every crate onto a glowing goal. You can push but never pull, so one careless shove can leave a crate stuck for good. 100 levels in ten worlds, from the Beginner Cup to the Sky Cup, with barrels that slide and sand that gets in the way.
Created by Brian Hamilton
Arrow keys, swipe, or tap where you want to go
How to play Sokoban
Move the worker around the warehouse and push every crate onto a goal square. The level is finished the moment every goal has something on it.
- Walk into a crate to push it one square. You cannot pull, and you cannot push two things at once.
- Barrels are pushed the same way, but they keep sliding until a wall, a crate, another barrel or sand stops them.
- Sand stops crates and barrels. You can walk on it, and it is gone once you have, so after that anything can be pushed across.
- A barrel on a goal counts, just like a crate.
- Finish quickly for a medal: every level has a gold, silver and bronze time. The clock starts with your first move. A level solved with a hint counts as done, but earns no medal until you solve it on your own.
- Levels open one at a time, and a world opens when you have finished every level in the one before it.
Controls: arrow keys or W A S D to move, Z or Backspace to undo, R to restart. On a phone, swipe across the board to take one step, or tap any square to walk there; tap a crate next to the worker to push it. Hint restarts the level and plays the first third of a solution, then two thirds, then all of it. Your progress and best times are kept in this browser.
Nearly half the floor is a dead end for a crate
You can push a crate but never pull it, so some squares are traps: once a crate is on one, no run of pushes will ever get it to a goal. A corner is the obvious case. To move a crate out of a corner the worker would have to stand inside a wall to get behind it. Walls are the subtle case. A crate against a wall can still slide along it, but nothing can push it away from the wall again, so if there is no goal anywhere along that wall, the crate is finished the moment it touches.
Measured on all 100 levels: of the 2,702 floor squares that are not goals, 1,231 are dead for a crate, which is 45.6%. 885 of them are corners and 346 lie along walls. In 57 levels at least two squares in five are dead. No crate starts on one, so every crate that ends up on a dead square was pushed there.
The count treats each crate alone and counts sand as floor, because you can always walk sand away. Other crates only make things worse.
The habit that follows: before you push a crate against a wall, look along the wall for a goal. If there is none, don't.
Two crates side by side against a wall are stuck for good
A dead square is about one crate on its own. Crates also trap each other. Put two crates next to each other along a wall and neither can move again: each could only be pushed sideways, along the wall, and to push either one the worker would have to stand where the other one is. The same goes for any two-by-two block made of crates, barrels and walls, as long as one of the pieces in it is off a goal. Sand does not count as a wall here, because the worker can stand on it.
Neither picture looks like a disaster when you make the push, which is the danger. The cure is Undo, straight away: the moment a crate lands against another along a wall, take the push back. Undo has no limit and costs nothing but time.
Sand is a wall you remove by walking on it
Sand is one of two things this game adds to classic Sokoban. It stops crates and barrels dead, but the worker can walk on it, and once they have, it is gone. Level 2 teaches it. The first crate sits on the top row with three squares of sand between it and its goal. Push it straight away and it travels two squares and stops against the sand. Walk the worker across the sand first, and the same pushes run it all the way home.
Clearing sand is not always right, though. In the stored solutions for the 37 levels that have sand, 65 of the 263 sand squares are still there when the level is finished, spread over seven levels, and 13 barrel pushes stop against sand. A patch of sand can be the stopper you need later. Walking on it cannot be taken back except with Undo, so before you cross it, ask whether anything will need to stop there.
A barrel stops only where something stops it
The other addition is the barrel. You push it like a crate, but it keeps rolling until the next square is a wall, a crate, another barrel or sand. That turns the usual question round. You do not choose how far a barrel goes; you choose what will be in its way.
Walls do most of the stopping, which is why goals in corners and against walls are the easy ones for a barrel. A goal out on open floor needs a stopper put beyond it first, and getting the stopper there is usually the real puzzle.
| Stopped by | Pushes | Share | Of those, stopped on a goal |
|---|---|---|---|
| A wall | 87 | 64% | 55 |
| Another barrel | 19 | 14% | 14 |
| A crate | 16 | 12% | 14 |
| Sand | 13 | 10% | 2 |
Ten worlds, and where they get hard
The levels come in ten worlds of ten, and a world opens when every level in the one before it is done. The early worlds teach sand and barrels; the last four are almost pure crate pushing, and much longer.
| World | Levels | Crates and barrels | With barrels | With sand | Moves | Gold time |
|---|---|---|---|---|---|---|
| Beginner Cup | 1–10 | 1–5 | 7 | 6 | 56 | 0:30 |
| Forest Cup | 11–20 | 2–8 | 4 | 2 | 47 | 0:27 |
| Cave Cup | 21–30 | 2–7 | 3 | 3 | 55 | 0:32 |
| Desert Cup | 31–40 | 2–6 | 7 | 10 | 83 | 0:45 |
| Glacier Cup | 41–50 | 2–7 | 4 | 7 | 78 | 0:45 |
| Mountain Cup | 51–60 | 3–34 | 5 | 7 | 223 | 2:15 |
| Ruins Cup | 61–70 | 3–13 | 1 | 1 | 146 | 1:30 |
| Clockwork Cup | 71–80 | 3–6 | 0 | 1 | 135 | 1:30 |
| Harbor Cup | 81–90 | 4–6 | 1 | 0 | 182 | 2:15 |
| Sky Cup | 91–100 | 4–8 | 0 | 0 | 188 | 2:00 |
The jump comes in the Mountain Cup. Its last level, Level 60, has 34 pieces: 18 barrels that start on goals and 16 crates that have to be fitted in among them without knocking a barrel off. More pieces do not always mean a harder level, though. Across the whole game, 141 of the 474 crates and barrels start on a goal already, and leaving them there is often the point.
Race the clock, or watch the route
Every level has a gold, silver and bronze time, shown under the board, and the clock starts with your first move rather than when the level opens. Finish all ten levels in a world and your ten best times are added up for a cup: gold on the Beginner Cup is 6:40 for the lot. Your best times are kept in this browser.
Stuck? Hint restarts the level and plays the first third of a stored solution; press it again for two thirds, and a third time for all of it. It is the same route the app's hints use, and it is a route that works rather than the quickest. A complete search solves Level 6 in 25 moves where the hint takes 33, and Level 1 in 23 where it takes 24, so you can beat it. A level finished after a hint still opens the next one, but it earns no medal until you solve it on your own.
Sokoban, the warehouse keeper
Sokoban is Japanese for warehouse keeper (倉庫番). Hiroyuki Imabayashi wrote the first version, and his company Thinking Rabbit published it in 1982. Licensed versions have appeared under other names since, Boxxle on the Game Boy among them, and the whole family is often just called box-pushing puzzles. Deciding whether a Sokoban level can be solved at all is PSPACE-complete (Culberson, 1997), which is the formal way of saying there is no known shortcut past trying things.
The 100 levels here come from Cargo Shuffle, our own Sokoban game for Android, with the same ten worlds, sand and barrels. Get it on Google Play if you would like them on your phone. For other Sokoban apps worth installing, see our guide to the best Sokoban games.
Stuck on a Sokoban level from somewhere else? Paste it into the Sokoban solver, which finds the fewest pushes and plays the solution back step by step, or tells you the level cannot be solved.
More puzzles that punish a careless move
Peg Solitaire
Every jump removes a peg for good, so like a crate in a corner, a bad jump early on only shows itself at the end.
2048
Tiles slide until something stops them, the same rule as a barrel, and the trick is the same too: decide what they will hit.
The best Sokoban games
Apps and versions worth trying once you have finished all 100 levels here, ours among them.