Source Code

The code for the checkers game itself was obtained from http://www.cs.uchicago.edu/~wiseman/checkers/. The code was written by John Wiseman at the University of Chicago in C++. The code provides options to play against a human or another program. Very few modifications were made to this code to make it run to our specifications.

A script runs the interaction between the two games. This script has two ways of terminating the game between the two programs. First of all, if someone wins, the checkers.cfg file is removed. When this file disappears, the script terminates.

Second, there is a limit to the max number of moves made. This condition was added to avoid draws, or games where the pieces simply shuffle back and forth.

The code for the genetic learning algorithm was written in ANSI C, and interacts with the C++ wischk through the use of various output files. The code is completely contained within main.h and main.c files. An example output file of a single game is included.


back to main