Tap the tray to start — clear the two pawns at the bottom first
01 / OVERVIEW
About Klotski
Klotski is a puzzle whose only verb is slide. The tray is 4 columns by 5 rows — twenty cells holding ten blocks: one 2×2 general, one 2×1 guard lying flat, four 1×2 guards standing up and four 1×1 pawns. That is eighteen cells, so exactly two are ever empty. A move pushes one block one cell into an adjacent empty space; nothing jumps, rotates, flips or turns a corner. There is one goal: get the general down to the exit in the middle of the bottom edge. The 12 levels run across three chapters and the fewest steps climb from 3 to 81, each one proved by exhausting that level's entire state space rather than estimated, so the efficiency bonus on the summary sheet is a target you can actually aim at. Tap a block and every socket it can slide into lights up amber at once — the rule is visible instead of written down, and what lights up is always a genuinely empty cell, so a lit tap always moves something. Stuck has three answers: undo steps you back toward the opening, the hint's first stage only marks the next move of the shortest solution and a second press takes it for you, and restart asks once and keeps your record. There is no losing here — no lives, no timer, and no dead ends, because every level is proven solvable from any position you can reach. On a keyboard the arrows move a cursor when nothing is selected and push the selected block otherwise, with Enter to select, Z to undo and H to hint; on a phone you tap to select and tap a lit socket to push, or just press and drag a block and it moves one cell per grid boundary your finger crosses.
Ten minutes between classes, and the little four-by-five plastic puzzle in the desk drawer had been handled until it shone — the blocks clacked when you shoved them and one corner had been chipped off for years. The stationery shop always had a few boxes on the bottom shelf, a coin or two each, and the first thing anyone did with a new one was push the biggest block down to see what happened. The nicest thing about it was that it never hurried you: no batteries, no sound, no countdown, and if it would not come out you put it back in the drawer until next period. The thing that made you thump the desk was spending half a lesson on it and ending up exactly where you started — so this version writes 「your steps」 and 「fewest steps」 side by side on screen, and draws every move a block can make right onto the tray.
02 / HOW TO PLAY
How to play Klotski
- 01
Tap the tray once to start. Nothing on the board moves — the tap only wakes the level up.
- 02
Tap a block to select it and every socket it can slide into lights up amber at once. Tap a lit socket and the block slides there in a straight line — every cell it crosses counts as one step, so a socket two cells away counts as two.
- 03
You can also press and drag a block: it moves one cell for every grid boundary your finger crosses, and lifting your finger stops it. This is the easiest way on a phone.
- 04
Made a mistake? Press Undo at the left end of the control row. Undo steps you back toward the opening and never costs you your record.
- 05
Stuck? Press Hint. The first press only marks the next move of the shortest solution in green and moves nothing; a second press takes that move for you. A run that used a hint still earns its medal but is not recorded as a best.
- 06
Slide the 2×2 general into the exit in the middle of the bottom edge to clear the level. The summary then shows your steps, the fewest possible, your medal, this run's score and your record together.
- 07
Need to stop? Press pause in the control row, or Esc or P. From there you can read the rules, pick any of the 12 levels, or restart this one — which asks again first.
03 / RULES
Klotski rules
Board and pieces: 4 columns by 5 rows, twenty cells. The ten blocks never change — one 2×2 general, one 2×1 flat guard, four 1×2 upright guards and four 1×1 pawns, filling eighteen cells, so exactly two are always empty. Winning: slide the 2×2 general to the middle of the bottom edge (the 2×2 position whose top-left corner is column 2, row 4). That is the only ending. Moving: one block at a time, one cell at a time. The whole cross-section the block would enter — one cell or two — must be inside the tray and empty. Nothing jumps, rotates, flips, passes through another block, or turns a corner; going around something takes two taps. Tapping: tapping a block selects it and lights up the socket for every position it can reach along the four straight lines. Tapping a lit socket slides it along that line. Tapping an empty cell that is not one of those positions is refused, the board does not move, and the block **stays selected** — so one more tap gets it right. Tapping outside the tray only clears the selection. Step count: every single-cell slide is one step. A tap that pushes two cells is two steps, a drag across two cells is two steps, and an undo takes one back. Undo: the stack holds 1024 entries, more than twelve times the longest optimal solution in the game, so in practice undo steps you all the way back to the opening. Undo never takes away progress score you already earned. Hints: two stages, mutually exclusive. The first only highlights the next move of the shortest solution and moves nothing; pressing again while it is lit takes that move and counts one step. Using a hint sets a flag for the rest of the run: the medal still stands, but that run is not recorded as a best. Undo does not clear the flag — only a restart does. Levels: 12 across 3 chapters. The fewest steps are 3, 6, 11, 15, 21, 28, 35, 43, 52, 61, 72 and 81, and both the general's starting distance from the exit and the number of cells blocking its corridor only ever go up. All 12 are open from the start, with no sequential unlocking — there is no losing state here, so locking levels would only build a dead end for anyone who got stuck. No losing: no lives, no timer, no game over, and **no dead ends** — because sliding is reversible, any position you can reach can be unwound, so every level stays solvable from anywhere you can get to. That is proved, not play-tested. Scoring: progress score is the deepest row the general's top edge ever reached minus where it started, at 100 per row; clearing adds a 400 base, plus an efficiency bonus of 300 times the level's fewest steps divided by your actual steps, rounded. The most a level can score is matching the fewest steps on a level where the general starts three rows up. Records are kept per level, on this device only. Medals: matching the fewest steps earns gold, finishing within 25% of it (rounded up) earns silver, anything else earns bronze. Sharing: the copy-link button on the summary gives an address that opens this level directly, and a level opened that way shares the same record as the main line.
04 / STRATEGY
Klotski strategy tips
Count the empty cells first: there are only ever two on the whole tray, so 「can this move」 is the same question as 「is one of those two sockets in the direction I want」. Finding them before you touch anything beats working it out in your head. One tap shows you everything a block can do: the amber sockets that light up are every position it can reach along the four straight lines, so you never have to try. To find out whether a block moves at all, tap it — one that is boxed in on all four sides nudges in place and says so. Dropping the general needs two cells at once: the 2×2 general moving down one row needs both cells directly beneath it empty, and the two cells the final move needs are exactly the middle pair on the bottom row — so whatever sits on them has to go out to the sides first. That is derived from the rules, not from experience, and it is why level 1 is only 3 steps and still shows the whole idea. Move the pawns first: the 1×1 pawns are the most flexible pieces on the tray — they are the only thing that fits a single empty cell, and they are the main tool for carrying an empty cell somewhere useful. An upright guard needs only one empty cell ahead to move up or down, but two side-by-side cells to shift left or right; the flat guard is the other way round. Pushing back and forth costs you nothing but steps: progress score records the deepest row the general **ever** reached and does not fall when you push it back up, so exploring is safe. Only your step count moves, and that only affects the efficiency bonus. For gold, clear it first and then grind it: use hints on the first run to see the route — that run is not recorded — then walk the fewest steps on the second. The hint gives the next move of a shortest solution, so following it for a whole level is an optimal solution. When stuck, undo rather than restart: there are no dead ends here, so any position you overshot can be unwound, and restarting also throws away the moves you already worked out.
05 / FAQ
Klotski FAQ
- How do you play Klotski?
- The goal is to slide the 2×2 general down to the exit in the middle of the bottom edge. The tray is 4 columns by 5 rows — twenty cells — and the ten blocks fill eighteen of them, so only two are ever empty. Each move pushes one block one cell into an adjacent empty space: nothing jumps, rotates, flips or turns a corner. Tap a block to select it and every socket it can reach along a straight line lights up; tap a lit socket and it slides there. You can undo any mistake, so there is no such thing as ruining a level.
- What is the fewest number of moves to solve Klotski?
- It depends on the level. The 12 levels here take 3, 6, 11, 15, 21, 28, 35, 43, 52, 61, 72 and 81 steps at minimum, and every one of those numbers comes from exhausting that level's entire state space — it is proved, not estimated, so your step count can never beat it. The measure is 「every single-cell slide is one step」: a tap that pushes two cells counts two, and so does a drag across two cells. Counting instead by 「whole moves that may turn corners」 gives much smaller numbers for the same board, and the two measures cannot be compared.
- Can you get stuck in Klotski with no way out?
- No — there are no dead ends. Sliding is reversible: once a block moves one cell, the whole cross-section it used to occupy is exactly what the move back needs, so the reverse move is always legal. That means any position you can reach can be unwound, and every level stays solvable from anywhere you can get to. So being stuck never calls for a restart: press Undo and step back, with a stack deep enough to unwind more than twelve times any level's optimal solution. If you genuinely cannot see it, press Hint — the first stage only marks the next move and moves nothing.
- How do Klotski hints work, and do they affect your score?
- The hint has two stages on one key. The first marks the next move of the shortest solution in green and names which block it is, without moving anything or counting a step; pressing again while it is lit actually takes that move and counts one step. A run that used a hint still earns its medal, but that run is not recorded as a best for the level — and undo does not clear the flag, only a restart does. So you can use hints freely on a first pass to learn the route, then play it yourself for the record.
- How many Klotski levels are there, and do you have to play them in order?
- There are 12 levels across 3 chapters, four to a chapter. Difficulty only goes up: the fewest steps climb strictly from 3 to 81, the general's starting distance from the exit goes from 1 row to 3, and the number of cells blocking its corridor goes from 2 to 6, which is full. No level is easier than the one before it in any of the three. All 12 are open from the start with no sequential unlocking — there is no losing state here, so locking levels would only build a dead end for anyone stuck on one. The level list shows each level's name, fewest steps, your record and your medal.
- How is the Klotski score calculated, and how are medals awarded?
- Three parts added together: progress score (the deepest row the general's top edge ever reached minus where it started, 100 per row, and it does not fall if you push back up), a 400 base for clearing, and an efficiency bonus of 300 times the level's fewest steps divided by your actual steps, rounded. Matching the fewest steps earns the full 300, which is the most a run can score on a level where the general starts three rows up. Medals go by step count: equal to the fewest is gold, within 25% of it rounded up is silver, anything else is bronze. Records are kept per level on this device only — no sign-in, nothing uploaded.
- What are the best strategies for solving Klotski?
- There is really one idea: watch the two empty cells, not the general. There are only ever two on the whole tray, so every move is really the question of how to carry an empty cell to where you need it. The 1×1 pawns are the only pieces that fit a single empty cell and so are your main tool for moving one; an upright guard needs only one empty cell ahead to move up or down but two side-by-side cells to shift left or right, and the flat guard is the other way round. The general moving down one row needs both cells beneath it empty at once, and the two cells the final move needs are exactly the middle pair on the bottom row, so whatever sits on them has to go out to the sides first. And since progress score keeps the deepest position and does not fall when you push back, exploring is safe: only your step count moves, and that only affects the efficiency bonus.
- What are the Klotski controls on desktop and mobile?
- On a keyboard: the arrows or WASD move a cursor when nothing is selected and push the selected block one cell otherwise, Enter or Space selects the block under the cursor, Z undoes, H hints, R restarts the level, and Esc or P pauses. On a phone one thumb is enough: tap the tray to start, tap a block to select it, then tap a lit socket to push it there. You can also press and drag a block — it moves one cell per grid boundary your finger crosses, and lifting your finger stops it. The bottom row holds six keys, with undo and restart at opposite ends and hint, mute, reduced flashing and pause between them; restart always asks again. All twenty cells fit on one phone screen in portrait, so a whole run needs no scrolling.