The Odin Project · Knight's Travails

The knight takes the shortest way

Pick a square for the knight, then pick where it should end up. The board fills in with every square the search looked at, in the order it looked at them — and stops the moment it arrives.