YayPlays

How to play

Knight Path: Choose a level
1Choose a level
Knight Path: In play
2In play

Controls

Tap
  1. Tap a glowing square to jump there in an L shape.
  2. Visit every lit square once.

Knight Path: 30 full tours without a hint, once our search learned the dead-end rule

All 30 boards were toured in one go with no hint, no undo and no restart, so every level earned three stars. It took two versions of our own search. The first gave up on level 29 after three million positions, twice; the second added one rule about dead ends and solved levels 29 and 30 in about a quarter of a million each. The route each board was generated from and the hint's own solver were never used.

Every lit square once

  • The knight jumps in an L: two squares one way and one to the side. Only lit squares can be landed on, and each exactly once.
  • From level 12 some squares carry numbers. They must be visited in order; a number that is not next yet works like a wall.
  • You cannot lose: with no legal jump you undo. Undo and restart are free.
  • Finish a board without a hint for three stars; one or two hints leave two, more leave one.
Level 12, the first numbered squares: 10 squares left, with numbered square 2 still ahead. The small digits by the green dots are keyboard keys.
Level 12, the first numbered squares: 10 squares left, with numbered square 2 still ahead. The small digits by the green dots are keyboard keys.

The search

Before the first jump the script read the board and searched for a full tour itself: depth-first, always trying the jump that leaves the knight with the fewest onward jumps (the old Warnsdorff rule, which the game's own tip also gives), taking numbered squares only in their turn, and dropping a branch as soon as some unvisited square had no way in at all. The jumps then went in with the digit keys the game shows on each target.

Level 17, the first 7 by 7 board: 13 squares left, numbered squares 2 and 3 still ahead.
Level 17, the first 7 by 7 board: 13 squares left, numbered squares 2 and 3 still ahead.

Level 29 and the second rule

That was enough until level 29, a 7 by 7 board with 45 lit squares and five numbers. Version 1 searched three million positions twice without a tour and pressed nothing. Version 2 added one more check: if two unvisited squares are each left with only one way in, the branch is hopeless, because only the last square of a tour may be a dead end. With that, level 29 took 240,472 positions and level 30, 233,656.

LevelsBoardLit squaresPositions searched
1-34 by 47-107-10
4-85 by 511-1611-74
9-166 by 618-2718-37
17-237 by 729-3731-69,250
24-287 by 738-4341-94,243
29 (v1)7 by 7453,000,028, no tour
29-30 (v2)7 by 745-46233,656-240,472
Level 29 with version 1: 44 squares left and no jump made, the search gave up.
Level 29 with version 1: 44 squares left and no jump made, the search gave up.

Touring by hand

The two rules that carried the search work for people too. Prefer the jump that leaves the fewest onward jumps, and watch for squares with a single connection left: only one of them can be your last square, so as soon as there are two, undo. Corners often have a single exit, so they come early in a good route.

Level 30: FULL TOUR! with three stars, 0 squares left.
Level 30: FULL TOUR! with three stars, 0 squares left.

Questions

Does undo cost a star?
No. Only hints lower the stars; undo and restart are free.
What do the numbers mean?
Numbered squares must be landed on in order, 1 first; until a number is next, the knight cannot land there.
How big do the boards get?
From level 17 every board is 7 by 7; level 30 has 46 lit squares.

· Corrections log

Suggest an idea or report a problem

We keep only your message (and email, if given) to improve the games.