After a midday of work including a small part of the evening I didn't get any further.
The game is slightly improved, I have removed some bugs like the double-click-bug. If you double clicked with the mouse, the opponents turn got skipped.
I've tried to add a logical system for determining the winner of the game, but that failed. I just don't want to write a bunch of if statements, I want a more elegant solution. Something like a magic square.
But I couldn't get the magic square to work for me, nor could I get just summing rows, columns and diagonals for me to work.
O well determining the winner is just a feature that will come in version 0.6 So I've got some time to try some other methods before resorting to a bunch of (yeck) if statements.
Play tic tac toe online:
http://gouwevrouwe.nl/projects/tic-tac-toe/
Or read the extensive changelog (for such a small program):
http://gouwevrouwe.nl/projects/tic-tac-toe/changelog.txt
|