Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 716 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 716 Bytes

Knights Tour

A knight's tour is a sequence of moves of a knight on a chessboard such that the knight visits every square only once.

This is an implementation of Warnsdorff's rule in Kotlin to find any open or closed knights tour for any size grid.

Example output:

Knights tour on a standard chess board

Knights tour on a standard chess board

Knights tour on a 120 x 120 chess board

Knights tour on a 120 x 120 chess board

An animated Knights Tour

Animated Knights Tour 16 x 16