Knight's tour
The knight's tour.
The knight starts at a random position. Wherever it lands will turn green. At the end the whole of the traversed path is shown by white lines. The final display lasts for 15 seconds and then the process starts again from another random position.
Written in vanilla Javascript using Warnsdorf's rule. For certain starting positions the rule doesn't work. I am still investigating.
Download
Download
SourceFiles.zip 151 kB
Leave a comment
Log in with itch.io to leave a comment.