the-moving-knight
A backtracking algorithm that finds the shortest sequence of moves for a knight on a chess board to go from one point to another.
Install
git clone https://github.com/codealchemist/the-moving-knight.git
cd the-moving-knight
npm install
Play with it
node index.js
node index.js --help
node index.js -e 5,7 -m 5
node index.js -e 9,9 -m 10
node index.js -e 9,9 -m 3