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 SokobanOther guides
- How to solve a sudoku: the techniques that work
- Minesweeper: the patterns to know
- How to win at Solitaire: the strategy
- Wordle-style game in French: how to find the word
- 2048: the strategy to win
- How to win at FreeCell
- Nonograms and picross: the method to solve them
- Takuzu (binary puzzle): the techniques to solve it
- How to win at Spider Solitaire
- Killer sudoku: cage combinations and the rule of 45
- Kakuro: sum combinations and the method
- How to solve a Hitori
- Einstein's Riddle: the grid method
- Mahjong solitaire: which tiles to remove first
- How to solve a Slitherlink
- Masyu: the basic techniques
- Traffic Jam: getting the red car out
- The 11 nets of a cube
- The Tower of Hanoi: solution and method
- How to solve a sliding puzzle
- The knight's tour: the method and the solution
- Calcudoku: how to solve a grid
- The fake coin puzzle: the method and the 12 coins solution
- How to win at Reversi: the three rules of strategy
- How to win at Four in a Row: the four rules
- How to solve a Skyscrapers puzzle: reading the clues
- How to solve a Tents puzzle: the method
- Yatzy strategy: which dice to keep and where to score
- Solo Battleships puzzle: the method to find the fleet
- How to solve a Crowns puzzle: the method
- Secret Code: the strategy to crack it in 4 or 5 guesses
- How to solve a Bridges (Hashi) puzzle: the method
- How to solve a Light Up (Akari) puzzle: the method
- How to solve an Islands (Nurikabe) puzzle: the method
- How to solve a Suguru: the method
- How to solve a Mosaic puzzle: the method
- How to solve a Rectangles (Shikaku) puzzle: the method
- How to solve a Dominoes (Dominosa) puzzle: the method
- How to solve a Thermometers puzzle: the method
- How to solve an Inequalities (Futoshiki) puzzle: the method
- How to solve an Aquarium puzzle: the method
- How to win at Oware: the four reflexes