THE MATHEMATICS COLLECTION · 008
KNIGHTSHIFT / The path workshop
KEY STAGE 3GRAPH THEORY & LOGIC

Every square.
One continuous journey.

Guide a chess knight across every square exactly once. Discover how local choices, parity and graph connections shape a global puzzle.

⌁ Hamiltonian paths↗ L-shaped moves◉ Live decision graph

The touring board

FREE EXPLORATION
BOARD SIZE
ROUTE FIELD 05 × 05Ready for a first move
VISITED
0/ 25
REMAINING25
NEXT MOVES—
STATUSReady
No moves yet

Escape-route comparator

↗

Each bar shows how many unvisited onward moves remain after jumping to that candidate square. Choose directly from a bar to move your knight.

Onward options Possible dead end Fewest exits

Field missions

0 / 90
9 GENERATED MISSIONS0 solved
BEGINNERMISSION 01 / 09

Loading challenge…

THE SCIENCE / BEHIND THE GAME

Why does a tour work?

KNIGHT'S MOVE(|Δx|, |Δy|) = (1, 2) or (2, 1)
BOARD AS A GRAPHG = (V, E)

Vertices are board squares. Edges connect pairs that a knight can reach in one legal move. A complete knight’s tour is a Hamiltonian path: one route that visits every vertex once.

Parity: each move switches from a light tile to a dark tile or vice versa. This proves a closed tour cannot exist on an odd-by-odd board.

Warnsdorff’s rule: prefer a square with few onward moves. It often avoids trapping isolated squares, but it does not always guarantee a complete tour.

↗
Where is this useful?

Graph paths also appear in route planning, circuit design, inspection scheduling and combinatorial search. A knight’s tour is a clear model for learning how constraints affect a network.

Three ideas. One board.

  1. 01Represent legal moves as a mathematical graph.
  2. 02Apply degree and parity to reason about paths.
  3. 03Test a search strategy against complete tours.
Made with 🤖 ChatGPT