tic-tac-toe				Daniel Haque (dhaque@pobox.com)
=======================================================================

Tic-Tac-Toe is only my 2nd C program so please don't be too critical, 
but, as I haven't seen a Linux version, I thought I'd upload it to sunsite.

The C code itself is quite simple (Though it didn't seem that way when
I was writing it!), the actual brains of the program are in 2 text files.

tic-tac-wins
------------
Both of the 2 files must reside in the current directory.  This file contains
a space delimited list of the ways in which the game is won.
All of these must belong to the same player, and if they do, that player has
won.

eg
1 2 3			The first row.

The squares are numbered like this:

1 2 3
4 5 6
7 8 9

tic-tac-strategy
----------------
This is a bit more complicated.  It consists of 2 conditions and an action.
The players are refered to as (H)uman and (C)omputer. EG:

1 C 2 C - 3

If square 1 is held by the computer and square 2 is held by the computer, 
this move you should go to square three to win.

1 H 9 H - 5

If Human holds square 1 and square 9 go in square 5 to stop them winning
(a diagonal).

o  These rules are interpreted in order.
o  They are (of course) checked to see if there is something else in that 
   square.  If so, the rule is ignored and the computer continues down the file.
o  The dash is compulsory
o  The Cs and Hs must be capital.
o  If a rule cannot be found to cope with the current situation, the lowest
   numbered available square is chosen.
o  You will probably find, you should put offensive rules in front of defensive 
   ones.
o  My rules are pretty good but not perfect, particularlly if human starts.



TODO
====

o  Computer plays itself
o  Play someone else over internet
o  Computer plays another over internet, with timed moves and a set no. of games
o  Tournaments
o  X Windows interface.


If you do modify the source, please send me a copy.

Daniel Haque 17/12/1995


================================================================================
Daniel Haque	Baldrick, does it have to be this way? Our	If there's any  
The MoleHole	valued friendship ending with me cutting you	hope, it lies  
Napier		into long strips and telling the prince that	with the 
NEW ZEALAND	you walked over a very sharp cattle grid in     proles
		extremely heavy hat?
================================================================================
   L I N U X :  T H E   C H O I C E   O F   A   G N U   G E N E R A T I O N !
================================================================================

