📦 How to play Sokoban (rules and strategy)

By Miguel Arechaga

Sokoban is a spatial logic puzzle: a handful of very simple rules hide levels that can have you thinking for several minutes before you move a single square. Here's how it works and the strategy to avoid leaving any box stuck with no way out.

What is Sokoban?

Sokoban means "the one who pushes boxes" in Japanese. You control a character inside a warehouse, and your goal is to push all the boxes onto target squares marked on the floor, moving one box at a time and without being able to pull them toward you.

How to play Sokoban step by step

  1. Move around the board with the arrow keys (↑ ↓ ← →) or by sliding your finger on mobile.
  2. To move a box, position yourself right behind it and step toward it: you'll push it one square in that direction.
  3. You can only push, never pull a box toward you.
  4. The goal is to leave each box on a marked square on the board.
  5. The level is complete once all the boxes are on their targets.

Strategy: think before you push

The golden rule of Sokoban is that one wrong move can leave a box wedged against a corner or a wall forever, with no way to get it out. Before moving a box, mentally check whether after that push you'll still be able to move it in some direction, or whether it will get trapped.

A very useful technique is to reason "backward": look at where each box needs to end up and figure out what previous move would leave it exactly there, instead of trying to advance blindly from the starting position. That way you avoid pushing a box "because it's there" and then discovering you've blocked the level.

Quick tips to avoid getting stuck

Sokoban rewards planning over speed, so take your time: every level solved without undoing a single move is a small victory of pure logic.

🏆 Best solves ranking

Sokoban has its own global ranking: your best solve of each level, with fewer moves, is saved. Go to Ranking, the 🕹️ 1 Player tab, choose "Sokoban" from the dropdown, and compare your score with other players, synced to your account. For your result to count you need a free account on MundoSudoku (just a username and password, no email required): you can play without one, but without logging in your score won't be saved to the ranking.

Ready to play?
Put what you've learned into practice.
🎮 Play Sokoban for free 🕹️ See all games
Miguel Arechaga, creator of MundoSudoku

Written by Miguel Arechaga

Creator and developer of MundoSudoku. Passionate about logic puzzles, he shares guides and tips so you can enjoy and improve at every game.