Gavin Williams
Tic-Tac-Toe v1.0

	Tic-Tac-Toe version 1.0 is a 'simple' two player CGI tic-tac-toe game. 

Version history:

Version .1- The beginnings of my program. I gave each button a parameter and printed 	each square as a submit button. When clicked, values would be submitted but the 	program would not do anything with them.

Version .2- Made each submit button (square) give the value 'X.' The program would 	now print "x.jpg" for each button that was clicked. A print statement was added 	what would display the parameters passed on each reload for debugging. I also 	added hidden submits that would allow the program to keep track of which 	button's had been clicked.

Version .3- Created a 'newplayer' subroutine to switch between player X and player O at 	each reload. I also began writing the subroutine 'winner' to check each winning 	combination, using the sub 'whowas' to find the previous player (the player who 	controlled three squares in a row before the reload). At this time the program	would only recognize a win on row 1 ($a1,$a2,$a3) and would require another 	value to be submitted before declaring the winner.

Version .4- Changed the print statement that printed the board to a series of if/else 	statements so that squared controlled by a player no longer remain submit 	buttons. I also finished the 'winner' subroutine to recognize any possible winning 	combination. Also added a bunch of print statements for debugging. The program 	now declares the winner immediately after a player controls three squares in a 	row.

Version .5- Added a yes/no debugging parameter to enable or disable debugging pring 	statements. Began writing a separate print statement to print the board with all of
	the squares as normal images, with their respective X, O, or Blank values as plain
	images instead of submit buttons once the program declares a winner.

Version 1.0- Activated the new print statement to display the board in the event of a 	winner using an if/else statement.