Sokoban: Push Box Strategy & Puzzle Guide
Solve every Sokoban puzzle with confidence. Learn deadlock prevention, goal-first thinking, and the box-movement patterns that clear even the hardest levels.
Sokoban is one of the most demanding puzzle games ever created. The rules are almost trivially simple — push boxes onto goals — but the depth that emerges from that simplicity has made it a classic for decades. If you have ever pushed a box into a corner and watched the level become unsolvable, this guide is for you.
Getting Started
The board is a grid of walls, floor tiles, goals, and boxes. You are the player (a character on the floor). Your task is to push every box so that every goal square is covered.
Controls:
- Arrow keys or WASD — move one step in that direction.
- Swipe (mobile) — swipe in the desired direction.
- D-pad (mobile) — on-screen buttons for each direction.
- U or Ctrl+Z — undo the last move.
- R — restart the current level from scratch.
You can only push boxes — never pull them. When you move into a box, it moves one square in the same direction, provided the square beyond the box is empty floor. If a wall or another box is behind the target box, the push fails and you cannot move there.
Difficulty:
- Easy — 6 levels, small boards, one or two boxes.
- Medium — 6 levels, larger boards, multiple boxes, tight corridors.
- Hard — 4 levels, complex layouts demanding precise multi-box planning.
Core Mechanics Explained
Pushing vs. Pulling
You move in four directions; boxes move in the same direction as your push. To push a box left, you must approach it from the right. To push a box down, you must be above it. This means repositioning yourself is a constant challenge — getting to the correct side of a box often requires a long walk around walls.
The Undo System
The undo button (U or Ctrl+Z) is your most important tool. Use it generously. Sokoban is about planning, and undoing a bad push is not cheating — it is the intended gameplay loop. The move counter tracks your total moves including undos; your best move count per level is saved.
Goals and Completion
When a box sits on a goal, it shows a visual indicator (usually a different colour). The level completes only when every goal is covered simultaneously. You can move boxes off goals, so keep track of which placements are final versus temporary.
Tips & Strategies
Identify Deadlock Squares Before You Move
Before pushing any box, look at the entire board and ask: are there any squares where, if a box ends up there, it can never reach any goal? The most common deadlock is a corner deadlock: a box pushed into a corner with walls on two sides can never be moved again (you cannot pull it back). Never push a box into a corner unless a goal is in that corner.
Work Backwards from Goals
Instead of pushing boxes around and hoping they reach goals, start by asking: which box should go to which goal, and what is the last push that places it there? Then ask what the second-to-last push must be, and so on. Working backwards traces a path that is much easier to follow forward.
Move One Box at a Time (When Possible)
In early moves, try to fully solve one box’s placement before touching another. Switching between boxes mid-sequence creates confusion and makes it harder to track which paths are still available.
Keep Corridors Open
Wide-open boards are easier to manoeuvre in than tight corridors. When planning your route, prefer pushes that keep the most floor space accessible for repositioning. A box pushed into a narrow corridor can be very hard to push out again.
Pre-Plan Your Repositioning
Getting from one side of a box to the other often requires a long walk. Plan this walk before committing to a push — make sure the path around the box and walls is actually reachable from your current position. Many false starts come from pushing a box and then discovering you cannot get back into position for the next planned push.
Advanced Techniques
The Deadlock Table
Experienced Sokoban players maintain a mental list of deadlock patterns beyond simple corners:
- Wall-edge deadlock: a box against a wall with no goal on that wall stretch cannot be pushed onto a goal by pushing along the wall.
- Two-box deadlock: two adjacent boxes can create a 2×2 block against walls, making both unmoveable.
- Frozen box: a box trapped between two other deadlocked boxes with no route to a goal.
Spot these early — the moment a deadlock forms, the level is unsolvable without restarting.
The Tunnel Technique
When a box needs to travel down a long corridor, every push inside the corridor must be in the same direction (you cannot change direction mid-corridor without leaving and re-entering from the correct side). Plan the entire corridor traversal before making the first push — count the squares, check whether any intermediary squares are goals you must not skip past.
Interleaving Boxes Near Goals
When multiple boxes need to reach adjacent goals, the order you place them matters. Placing one box on a goal can block access to position you need for the next box. Place boxes on goals from the most accessible to the least accessible (the one requiring the fewest future repositioning moves), or in an order that keeps the remaining goals reachable.
Common Mistakes to Avoid
- Pushing a box into a corner. Unless the corner has a goal, this is game-over. Always check what is behind the box before pushing.
- Moving too fast. Sokoban rewards careful thought before each push. One bad push can require a full restart. Take your time.
- Not using undo early enough. If you pushed something wrong two moves ago, undo back to before the mistake. Trying to fix a wrong push with more pushes usually deepens the problem.
- Forgetting to check your repositioning path. You planned the box push but not how to get to the right side to make it. Always plan the full sequence: position → push → reposition → next push.
- Treating Hard levels like Medium levels. Hard levels often require solving multiple boxes in a specific interleaved order. Approach them with a full top-level plan rather than box-by-box improvisation.
Final Thoughts
Sokoban is a pure logic puzzle with no luck or time pressure. Every level has a solution, and that solution can be found through methodical analysis. The two skills that matter most are deadlock recognition (what positions to avoid) and backward planning (tracing the solution from the goal state). Master those two habits and even the hardest levels become approachable, however many undos and restarts they require along the way.
