Klotski
Klotski is the classic sliding-block puzzle: a tray four squares wide and five high, one big square block, long blocks, small blocks and only two empty squares. Slide the blocks around until the big one reaches the gap in the middle of the bottom edge and can slide out. Play the traditional layouts, led by Forget-me-not in 81 moves, or a new puzzle from Easy to Hard, with the fewest moves always shown. Slide the wooden blocks until the big square block stands over the gap in the middle of the bottom edge; then it slides out. Drag a block to move it: it follows your finger through the free squares, around corners too. A move is one block sliding any distance, so try to free the big block in as few moves as you can.
How it works
- Choose a puzzle: a classic layout such as Forget-me-not, or a generated one on Easy, Medium or Hard.
- Drag a block into the free squares; it follows your finger, around corners too. Each block you move counts as one move, however far it slides.
- Make room until the big block stands over the gap at the bottom and slides out. Try to match the fewest moves; Hint shows the next best move and Solve plays them all.
The rules
The tray is 4 squares wide and 5 high, with a gap two squares wide in the middle of the bottom edge. It holds one big 2 x 2 block, tall 1 x 2 and wide 2 x 1 blocks, and small 1 x 1 blocks, leaving two squares empty. Blocks slide into free squares but never lift, turn or jump over each other. The puzzle is solved when the big block stands over the gap and slides out.
How moves are counted
One move is one block sliding any distance, even around a corner in a single drag, and moving the same block again straight after still counts as that one move. This is the classic way of counting, the one in which the traditional Forget-me-not start needs 81 moves. Counted square by square, the same solution would be more than a hundred steps.
How to think about it
The two empty squares are your only working space, so think of moving the gaps rather than the blocks. Bring both gaps together to make room for a long block to turn the corner, and keep the small blocks free: they are the ones that let everything else through. The big block usually has to wander sideways and even upwards before it can come down to the exit.
Frequently asked questions
What counts as a move?
Sliding one block, however far it goes and even if it turns a corner on the way. Moving the same block again straight after still counts as that one move. This is the classic counting, in which Forget-me-not takes 81 moves.
Is the fewest number of moves really the minimum?
Yes. The computer searches every position the blocks can reach from the start, tens of thousands of them, and finds the shortest way to the exit, so nobody can do it in fewer moves. When you match it, the game tells you.
What do Hint and Solve do?
Hint marks a block and outlines where it should go for the shortest way out from where you are now. Solve plays the remaining best moves one by one, and Step plays one at a time. A puzzle solved with help does not count for your best score.
Where do the classic layouts come from?
They are traditional starts of the sliding-block puzzle known as Huarong Dao in China and L'Âne Rouge in France. Forget-me-not, with the four tall blocks around the big one, is the best known; the others move the small blocks and the wide block to new places and need 60 to 72 moves.
Can I play with the keyboard?
Yes. Tab moves from block to block and the arrow keys slide the chosen one a square at a time; when it cannot go that way, the arrow moves to the block next to it. Ctrl+Z undoes a move.
Klotski: how do I record a video?
Press the red Record button in the playback bar: it films what the stage shows. Press it again to stop, and the video is saved to your device. Recording is free; you only need to sign in. Without a subscription the video carries a small PictorX logo in a corner. The button beside Record opens the video options: the shape (as shown, square, story 9:16 or wide 16:9), the length (until you stop, or 5, 10, 15 or 30 seconds for social media) and the file: MP4, WebM or an animated GIF. You can add one of three music tracks: calm, bright or beat.
Ready to try it?
Open PictorX in your browser — no install, no credit card required to start.
Go to Editor