How to Play Sokoban: Rules, Deadlocks and a Worked Example
Sokoban challenges you to push crates onto targets. Because crates cannot be pulled, planning where to stand matters as much as the push itself.
Learn the push-only rules
Move the player around a warehouse and push every crate onto a target without moving through walls. A crate can move only when you stand next to it and the destination beyond it is empty. You cannot pull a crate or push two crates at once. A crate may move off a target again if the position allows it.
Before pushing, identify where you must stand, where the crate will land and whether you will still be able to reach the other side. Plan the path of the player as well as the path of the crate.
Solve a tiny original warehouse
Here is a separate teaching board. The hash marks are walls, the at sign is the player, the dollar sign is the crate and the dot is its target. Spaces are walkable floor.
#######
# #
# $. #
# @ #
#######The player starts below the crate. Walking left, up, then right pushes the crate once onto the target. The solution from this starting position is left → up → right: three moves and one push. Walking directly up would instead push the crate away from its target, so check your approach before moving.
Try tracing the same three moves on paper. The live widget uses its own levels, not this teaching board.
Recognize a deadlock before pushing
A deadlock is a position from which the level cannot be completed. The easiest example is a crate pushed into a corner that is not a target: two walls prevent any further push out. Also beware of crates that block each other, or a crate against a wall when no target can be reached along that wall.
Do not assume every crate against a wall is stuck; sometimes its target is along the same wall. If the next push removes your access to the needed side of a crate, choose another route. Use Undo immediately if an experiment fails.
Try the free Sokoban widget
The current source lists 667 puzzles across 12 packs: a 500-puzzle Sasquatch campaign, 12 Starter puzzles and 155 Microban classics, credited to David W. Skinner for the original collections. Begin with Starter rather than chasing a move-count record.
Use arrow keys or WASD, the directional pad or swipe to move. Undo steps back one move and can reverse a push; Reset restarts the level. Hints, solved or unsolved filters, favorites and a daily option are present. Best move and push counts are stored locally when browser storage is available.
If the preview does not load, open Sokoban and customize it.
Keep a puzzle board in Notion
Customize appearance and size, copy the generated link and paste it into an /embed block. Give the board and level picker enough space. Open the direct widget if movement or touch controls do not work in an embed. The full level library needs a separate hosted asset; the source includes a small fallback, not the entire collection offline.
For more spatial and tactical games, see the chess, word and logic games guide.
Common questions
Can I pull crates?
No. You can only push one crate at a time into an available square.
Does every corner create a deadlock?
No. A crate in a corner target can be correct; a crate in a corner without a target is usually irrecoverable under the push-only rules.
Do my solved levels synchronize with Notion?
No. Progress is stored locally in the browser when available, and a cleared storage context can lose it.