puzzles

KLOTSKI

loading...

KLOTSKI

slide the general home
moves
0
time
0:00
best
---

KLOTSKI

横刀立马

SLIDING BLOCK PUZZLE

GENERAL ESCAPED!

moves: 0

time: 0:00

NEW HIGH SCORE!

enter your initials:


all-time high scores

how to play

Klotski (横刀立马) is a classic Chinese sliding block puzzle. The goal is to slide the large 2×2 block (曹操) to the exit at the bottom center.

Click or tap a block to pick it, then use the arrow keys or swipe to slide it one space. Tab picks the next block. Blocks only slide, so they cannot jump over other blocks.

The gold block is 曹操 (Cao Cao). The jade blocks are his generals. The cyan blocks are soldiers.

Your score is your move count: fewer moves is better!

credits

design and development: Jake A. McCoy

original concept: Klotski (横刀立马), a traditional Chinese sliding block puzzle from the early 20th century

technology & resources:
• HTML5, CSS3, and pure vanilla JavaScript
• adenosine puzzle framework
• Press Start 2P font by CodeMan38 (Google Fonts)

published by: magmacrunch media

last updated: July 11, 2026