Simple approach to solving the knight's tour problem based on Warnsdorff’s algorithm for minimum accessibility.
- Clone into web root parent directory.
- Point web document root to
./publicfolder. - Run
composer dump-autoloadin project root. - In
./dev, runnpm install, thenbower install && gruntto finish loading dependencies and build assets.
x: starting x coordinate (i.e. a or 1). Defaults to random.
y: starting y coordinate (i.e. 1). Defaults to random.
size: board size (squared). Defaults to 8
output: output results to console. Defaults to 1
php -f index.php x y size output
- map
./publicfolder to web root. - Go to root url in your browser.
- Submit coordinates and size values, or leave blank for defaults.
- Implement a prediction method for identifying closed tours
