/Knight-travails

A visual representation of the knight's optimal movement.

Primary LanguageJavaScript

Knight Travails

PROJECT DEMO

A visual represantation of a knights travel's to it's destination on the chessboard(hopefully) via the optimal path!

How ?

  1. Create a knight either by selecting the place button and clicking on a board square or by generating a random starting knight.
  2. Click on the end button and select an ending destination for your knight on the board.
  3. Travail!

Site's Demo

Notes

Created as part of The Odin Project CS course.

A friend of mine once challenged me to find the solution of a knight travailing the chess board, passing each square only once, i have never figured it out, perhaps i should return to the old problem sometime soon and provide a full solution.

Knight vector taken from SVG repo .