Knight’s Tour
Jump the knight to every square exactly once.
Squares 0 / 640:00
Pick any square to place the knight
How to play the Knight’s Tour
- Move a chess knight so that it lands on every square of the board exactly once. Tap or click any square to place the knight.
- A knight jumps in an L shape: two squares in one direction, then one square to the side. The dots show where it can jump next.
- Each square you visit gets a number, and a line shows your path. The knight can’t land on a numbered square again. To take back a jump, press Undo or tap the previous square.
- When the knight has no move left, or a red × marks a square that can no longer be reached, undo and try another way. Hint suggests your next jump, or how far back to go.
- A tour is closed when the last square is a knight’s move from the first, so the knight could jump back to the start. On 5×5 and 7×7 there are no closed tours, and a tour has to start on a square the same color as the corners.
- “Counts” shows, on each square you can jump to, how many moves the knight would have from there.
- The Daily puzzle is the same for everyone: start where the knight stands and finish on the flag. On a computer, use the arrow keys, Enter or Space to jump, H for a hint, and U or Ctrl+Z to undo. Your boards are saved.
Tips
- Warnsdorff’s rule: always jump to the square with the fewest onward moves (turn on Counts to see them). When two squares tie, pick the one nearer the edge. On 5×5, 6×6 and 8×8 this usually finishes the tour on its own; on 7×7 you will often need to back up.
- Visit edges and corners early. A corner has only two ways in, so if you leave it for later, it is easy to cut it off.
- A square with only one way in left has to be your very last square. If two squares are like that, the tour can’t be finished, so undo.
About the Knight’s Tour
The knight’s tour is one of the oldest chess puzzles. A pattern for it appears in Rudrata’s Kavyalankara, a 9th-century Sanskrit work on poetry, and Leonhard Euler studied it in a paper in 1759. In 1823 H. C. von Warnsdorff described the rule in the tips above. The 5×5 board has 1,728 tours, and the 8×8 chessboard has more than 26 trillion closed ones.