Huarong Dao — Grid Puzzle Games

Huarong Dao (華容道 huá róng dào, "the Huarong Trail") is China's great sliding-block puzzle: walk the big 2×2 block from the top of a 4×5 board out through the exit at the bottom, past nine blockers, with only two empty cells of room to breathe.

The story

The year is 208 AD. The warlord Cao Cao, beaten at the Battle of Red Cliffs, flees with a handful of riders down a narrow muddy trail called Huarong Dao. Waiting there is the general Guan Yu — who owes Cao Cao an old debt of mercy from years before. In the novel Romance of the Three Kingdoms, Guan Yu weighs duty against gratitude, sighs, and lets him pass. The puzzle restages that escape: the 2×2 block is Cao Cao, the five long blocks are generals (Guan Yu is the one lying crosswise in most openings), the four small squares are soldiers, and the exit is his road home.

The 32 openings

Tradition passed down dozens of starting positions, each with a poetic four-character name — 橫刀立馬 "blade crosswise, halting the horse," 水泄不通 "not even water seeps through," 峰迴路轉 "the peaks turn, the road winds." Many are everyday Chinese idioms, so each level's help page glosses its name character by character — solve the set and you leave with a small vocabulary of real Chinese. This collection carries all 32 classical openings from the standard piece set (one 2×2, five 1×2, four 1×1), ordered easiest to hardest: from 比翼橫空 at 28 steps to 峰迴路轉 at 138.

How to play

Drag a block (or tap it and use the arrows) to slide it into empty space — nothing lifts, nothing rotates. Win by walking Cao Cao onto the marked 2×2 exit. The step counter uses the classical count: one piece sliding any distance, turns included, is one step, so a perfect 橫刀立馬 game reads exactly 81. Hint always knows a step-shortest continuation from wherever you are.

The math

Each opening's minimum step count was long folklore, settled only when computers exhaustively mapped the state space — about 65,000 essentially different positions once identical pieces are treated as interchangeable. The solver behind Hint does the same search live. Two counting conventions coexist: classical steps (this game's counter, 81 for 橫刀立馬) and one-cell slides (116 for the same layout) — and the shortest path under one metric is generally not shortest under the other. The general theory of sliding blocks is covered in the Klotski family's help page; the short version is that these ten little blocks hide a genuinely deep search problem.