Knight's Tour (Wiki) nXn board - Warnsdorf's Heuristic in p5.js
Check out the tour without the heuristic - Here

Select Board Size -