The Daily Click ::. Projects ::. Tic Tac Toe (html5)
 

Project: Tic Tac Toe (html5)
Project Started: 20th July, 2011 Last Update: 23rd July, 2012
Project Owner: Jenswa Project Members:
Project Type: board game Project Progress:
More Info: http://dl.dropboxusercontent.com/u/82972447/gv-summary-html/files/canvas/tic-tac-toe/index.html Faves: 0

Magic Square
Posted 21st Jul 11, by Jenswa  
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

No comments have been posted for this post.


 



Project Forums


Favourite

Advertisement

Worth A Click