TrialsPlay Mind Trials logo TrialsPlay
Sokoban Cozy 7 min read • Updated 2026-11-30 • By TrialsPlay Editorial Team

The 5 Classic Sokoban Deadlocks (And How to Spot Them Early)

A deadlock is a board state from which victory becomes mathematically impossible. Master these 5 visual patterns so you catch mistakes the instant they happen.

Every Sokoban player eventually hits a puzzle where they spend five minutes shuffling crates around before realizing the level became unwinnable twenty moves ago. In puzzle theory, an unwinnable board state is called a deadlock.

Strong players rarely calculate 40 moves ahead from scratch. Instead, they rely on fast pattern recognition to eliminate deadlock moves immediately. Below are the five classic Sokoban deadlock patterns that account for over 90% of stuck boards across Microban and Minicosmos.

1. The Simple Corner Deadlock

Because crates can only be pushed—never pulled—a crate needs open space on at least one opposite pair of sides (either left-and-right or top-and-bottom) to move. The moment a crate touches two adjacent perpendicular walls on a non-goal tile, it is frozen forever.

Pattern 1 — Corner Trap
######
#$   #   <-- '$' has wall above AND wall to its left.
#  @ #       Zero legal pushes can ever free it!
#  . #
######
        

Rule: A corner square without a goal tile (.) is permanently forbidden territory for any crate.

2. The Wall-Line (Edge) Deadlock

A subtler trap occurs along a straight wall segment bounded by corners at both ends. Suppose you push a crate flush against the top wall. From that point on, you can only slide the crate left or right along that exact wall—you can never push it downward away from the wall because the wall occupies the space above it!

Therefore, if that uninterrupted wall segment contains zero goal tiles (and no doorway breaks the wall), pushing a crate against it creates an instant deadlock even though the crate can still slide sideways.

Pattern 2 — Dead Wall Edge
########
#  $   #   <-- Crate can slide left or right along row 2,
#      #       but can NEVER leave the top wall.
#  ..@ #       Since no '.' exists on row 2, this is dead!
########
        

Count the goals along every wall segment. If a wall segment has 1 goal, never push 2 crates against it!

3. The 2×2 Freeze Square Deadlock

Even out in the middle of an open room—far from any walls—crates can lock each other into a permanent block. Whenever four tiles arranged in a 2×2 square are completely filled by any mix of crates and walls, none of those crates can move in either axis. If even one crate in that 2×2 square is not on a goal tile, the puzzle is over.

Pattern 3 — 2x2 Freeze Clusters
  Four Crates:        Three Crates + 1 Wall:     Two Crates + 2 Walls:
    .  .                   .  .                       .  .
    $$                     #$                         ##
    $$                     $$                         $$
  (All 4 frozen)       (All 3 frozen)             (Both frozen against wall)
        

Look especially closely at the third diagram: pushing two crates side-by-side against a straight wall freezes both immediately unless both sit on goals.

4. The Zig-Zag (Diagonal Wall) Freeze

This is the number-one killer in Minicosmos and mid-to-late Microban levels. Two crates placed diagonally next to each other inside a narrow bend can block each other's only escape axis:

Pattern 4 — Diagonal Wall Freeze
#####
# #$#   <-- Top crate '$' is blocked vertically by '#' above and '$' below-left?
#$# #       Wait: top '$' blocked Left (#) and Right (#) -> can only move Down,
#   #       but bottom '$' blocks the corridor or walls lock both axes!
#####
        

Test any tight crate pair with the "Freeze Check": for each crate, check if its horizontal axis is blocked AND its vertical axis is blocked (by walls or by another frozen crate).

Whenever you push a crate next to another crate near irregular walls, pause for one second and run the two-axis check: "Can Crate A still be pushed North-South or East-West? What about Crate B?" If neither crate has an open push axis without moving the other first, hit Undo immediately.

5. The Cut-Off (Corridor Seal) Deadlock

Finally, a board can become unwinnable even when every crate is technically movable—simply because your character is trapped on the wrong side of the warehouse. If you seal a 1-tile bottleneck with a crate while another unplaced crate remains on the far side of that seal, you may no longer be able to reach the pushing side of the remaining crate.

Pro Tip — The Capacity Rule: Before pushing crates into a dead-end alcove or side room, count how many goal tiles sit inside that region. Never push more crates into a region than there are goals (or temporary escape doors) inside it.

Training Your Eye

Next time you open Sokoban Cozy, try playing five consecutive levels without allowing a single Corner or 2×2 Freeze deadlock. Once your brain automatically flags dead wall segments and 2×2 clusters, even intimidating 6-crate rooms in Microban 80+ start opening up cleanly. Ready for the offensive half of Sokoban strategy? Read Working Backwards in Sokoban: The Goal-Order Method.

Ready to practice this strategy?

Launch Mind Trials directly in your browser—free, instant, with unlimited Undo.

Practice in Sokoban Cozy →

Continue Reading