KLOTSKI

Klotski, get the general out.

The classic sliding puzzle: move the four generals to free Cao Cao. Click or drag a piece to move it, with undo, reset, live move count and timer. Runs locally.

曹操
关羽
张飞
赵云
马超
卒
卒
卒
卒

This game

Moves
0
Best step
Optimal: 81 moves
Time
0s
Personal best
none yet

How to play

A 4x5 board holds four vertical generals, one horizontal general (Cao Cao) and four soldiers. A move slides one whole piece into an adjacent gap; the number of empty cells never changes. Move the two gaps below Cao Cao, then slide him out through the bottom channel to win.

Everything runs locally in your browser

How to play

A 4x5 board holds four vertical generals, one horizontal general (Cao Cao) and four soldiers. A move slides one whole piece into an adjacent gap; the number of empty cells never changes. Move the two gaps below Cao Cao, then slide him out through the bottom channel to win.

FAQ

What counts as solving it?

Slide Cao Cao (the wide two-cell piece) out through the bottom channel so the four generals can no longer trap him. When he reaches the bottom two cells, the puzzle is solved.

What is the minimum number of moves?

The optimal Klotski solution is 81 moves (exact counting varies by rule set). Under 100 moves is generally considered skilled.

觉得好用?Found it useful?