← Escape Grid

Klotski online: the classic sliding block puzzle

Klotski is the puzzle you have probably held without knowing its name: a shallow tray packed with wooden or plastic blocks, one of them larger than the rest, and a gap in one edge that the large block has to reach. There is no shuffling and no lifting. You slide, and the only thing you have to work with is empty space. This page explains where the puzzle came from, why its layouts are so hard, and how the modern versions — including the levels in Escape Grid — changed the rules to make the logic readable.

Where the name comes from

Klotski comes from the Czech klotski / klátky, meaning small wooden blocks, and it became the common computing name for the puzzle after early desktop versions shipped under it. The same puzzle family is sold as Huarong Pass in China, Daughter in the Box in Japan, and dozens of licensed names elsewhere. The Chinese version carries a story: the general Cao Cao, represented by the large 2×2 block, is trying to escape through Huarong Pass while his guards block the way.

The classic layout, and why 81 moves

The traditional board is 4 cells wide and 5 tall. It holds one 2×2 block, five 1×2 blocks, four 1×1 blocks and exactly two empty cells. The 2×2 block must reach the opening at the bottom. Two free cells in a twenty-cell tray is an extraordinarily tight budget — most positions offer only three or four legal moves — and the shortest known solution runs to 81 block moves. That is the defining feature of classic Klotski: you cannot see the end from the start, so you have to trust a structure rather than a plan.

How to actually solve one

Stop looking at the big block. Look at the two empty cells and ask what shape they currently form: side by side horizontally, stacked vertically, or split apart. Only a vertical pair lets a 1×2 upright block move sideways; only a horizontal pair lets a flat block move up or down. Solving Klotski is really the practice of steering that pair of holes around the board and assembling a 2×2 hole next to the big block at the right moment. Once you think in holes instead of blocks, the puzzle stops feeling random.

Classic Klotski vs modern sliding block puzzles

Modern versions almost all make one change: each piece is locked to a single axis. A horizontal piece can only go left and right, a vertical piece only up and down, and nothing rotates. That is the Rush Hour variation, and it is what Escape Grid uses. It costs you some of the classic puzzle's chaos and buys two things. First, blocking is readable — you can look at a lane, see the one piece sitting in it, and know exactly what has to move. Second, levels become designable and verifiable at scale, so a game can ship a hundred and sixty distinct boards instead of one legendary layout. Escape Grid then adds its own pieces on top: walls that never move, keys and locked gates, and ice tiles that make a piece slide until something stops it.

Which one should you play?

If you want the historical article — one board, dozens of moves, a solution you eventually memorise — look for a faithful Huarong Pass implementation. If you want the thinking without the bookkeeping, the axis-locked version gives you a fresh board every few minutes and a clean feedback loop: find the blocker, clear its parking space, move on. Most people who enjoy Klotski enjoy both, for different reasons.

Play a Klotski-style puzzle free

Start at Classic Level 1 — the first ten levels teach the movement rules, and from there the boards begin hiding their solutions behind a first move that looks like it goes the wrong way. It runs in the browser, needs no download and no account, and every level was checked by a solver before release, so nothing you meet is impossible.

Next: the step-by-step sliding puzzle method, or the unblock puzzle guide for the axis-locked family in detail.

Frequently asked questions

What is Klotski?
Klotski is a sliding block puzzle played on a rectangular board. Blocks of different sizes fill the board with only a small amount of empty space, and the aim is to slide one large block to a target opening without lifting or rotating anything. The name comes from the Czech word for a small wooden block, and the puzzle is sold under dozens of other names.
How do you play Klotski online?
You drag or tap a block and it slides along the free space next to it. Blocks never rotate and never jump over one another, so the only resource you have is the empty space. Playing online removes the fiddly part of the physical toy: you can reset instantly and retry a line of play as many times as you like.
Is Klotski the same as Rush Hour or Unblock Me?
They are close relatives. In classic Klotski the blocks are squares and rectangles that can move both horizontally and vertically, and one big square has to reach an opening. In Rush Hour style puzzles — including Escape Grid — each piece is locked to a single axis, which makes the blocking relationships easier to read and the levels easier to design at scale.
What is the minimum number of moves to solve classic Klotski?
The best known solution to the traditional Huarong Pass arrangement takes 81 moves when each block shift counts as one move. That length is why the classic layout feels punishing: a single wrong commitment early can cost dozens of moves to undo.
Where can I play a Klotski-style puzzle for free?
Escape Grid is a free browser sliding block puzzle with 160 hand-checked levels and no download or account required. It uses the axis-locked variation rather than the classic Huarong Pass layout, so the levels are shorter but the blocking logic is the same.