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.

Published 4 hours ago
StatusReleased
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
Authorgrelf
TagsChess

Download

Download
SourceFiles.zip 151 kB

Leave a comment

Log in with itch.io to leave a comment.