KNIGHT.CPP :
~~~~~~~~~~~
#include
#include
#include
#include "class_define.h"
#include "chess_display.h"
#include "std_algorithm.h"
#include "functions.h"
HEADER FILE STD_ALGORITHM.H
~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can run the program using the back tracking method by removing
#include "std_algorith.h"
from the knight.cpp file. Inclusion of std_algorithm.h in the program, will use the warnsdorff's
rule and solutions to all the 64 starting locations can be obtained immediately.
HEADER FILE CHESS_DISPLAY.H
~~~~~~~~~~~~~~~~~~~~~~~~~~~
This header file is used to provide a chess board display of the result. If you do not like this
display you can disable it by removing
#include "chess_display.h"
from the knight.cpp file. In the absence of chess_display.h the output will be displayed as an
array of numbers.
               (
geocities.com/ecma_ver1)