This archive contains 2 scripts files: driver.sh and test.sh  and four
several C++ program sources that are called from within test.sh

The code assumes a square board of size KxK. To run driver.sh type:
driver.sh <K> <#runs>

where number of runs is the number of tic-tac-toe games ro play


test.sh is called from within driver.sh. 

test.sh allows both the player and the random adversary to take turns
and determines wins and ties. It keeps score in a 'score' file.

The real board is kept in b.txt. The board visible to the player is
board.txt

The C++ programs are 
checkwin.cc :  tests for wins and ties
checkmove.cc: checks if move from player is valid
genOmove.cc: generates valid random 'O' move
genInstance.cc: generate a partially populated random  board (with K/2
moves by each player)


To compile the C++ code, for example checkwin.cc, type:
g++ -o checkwin checwin.cc

Repeat that for all C++ files.

