Sokoban: the mistakes to avoid

By Arnaud, creator of procstd. Updated October 27, 2026.

In Sokoban you rarely lose in one move: you lose by pushing a box to the wrong place ten moves earlier. The whole method is about recognising positions with no way back before you create them. Here they are.

Try it as you read: play Sokoban, free and ad-free.

The rules

The player walks around the warehouse and pushes boxes by walking into them, one at a time. A box can never be pulled. The level is won when every target holds a box.

On the site, every level was solved by computer: it has a solution, and the minimum number of pushes is known.

1. The corner, a deadly trap

A box pushed into a corner, against two walls, will never move again: you can only push a box by standing behind it. If that corner is not a target, the level is lost. Before every push towards a wall, look at where the box stops.

2. Along a wall

A box against a wall can only slide along that wall. If there is no target on that side, it is lost too, even outside a corner. Only push a box against a wall to bring it to a target along that wall.

3. Boxes that block each other

Two boxes side by side against a wall block each other: neither can be pushed along the other. Four boxes in a square, or two boxes and two walls in a square, never move again. Keep space between boxes.

4. Think about the player

To push a box, you have to get behind it. A well-placed box can close the only corridor that led to the others. Before pushing, check that the player can still reach every box.

As a rule, fill the targets at the back first: a box placed on a target near the entrance often blocks the way to the next ones.

5. Undo, restart, hint

"Undo" takes back the last step: use it as soon as a push looks doubtful. A hint plays the next push of a shortest solution, for 60 seconds; if the position is already a dead end, it puts the level back to the start. There are no hints in Hardcore.

The levels

Easy: two boxes, 5 to 8 pushes. Hard, the ranked level: three boxes, 10 to 15 pushes. Expert: three boxes, 15 to 24 pushes. Hardcore: four boxes, 20 to 32 pushes, with no hints.

Your turn

The rules, the levels and the frequently asked questions are on the Sokoban page. Each level has its own leaderboard.

Play Sokoban

Other guides