Forget about the magic 3x3 square, just checking the rows, columns and diagonals is enough to declare a winner or a draw in the end.
So now you can moves some pieces strategically and actually be a winner!
And if you've won, the board will turn in your colour! Amazing isn't it
What even more amazing is, is the green token in the bottom right corner. It's either a green cross or green circle indicating the player's turn.
Don't forget to resize your browser window and see the game getting resized too
Want to play a game against your little brother?
http://dl.dropboxusercontent.com/u/82972447/gv-summary-html/files/canvas/tic-tac-toe/index.html
PS: I might add touch controls tomorrow.
|