This is an implementation of Ben Finegold's Knight and Queen puzzle. You can play it here.
Some features:
- Compares the path you took to the ideal minimal path.
- Can provide hints
- Customize board: Move queen to any square, add other pieces, change starting square.
- It's possible to randomize the order of the squares.
Apologies for the code being quite messy. I originally meant to write a simple solver for the puzzle, but then quickly hacked together a working version of it.
This puzzle uses chessboard.js and jQuery.