simplified, added some documentation

This commit is contained in:
Jeena Paradies 2011-01-30 06:36:58 +01:00
parent 20a07dbd6a
commit 8e468b5eec
5 changed files with 64 additions and 44 deletions

View file

@ -1,4 +1,6 @@
// This first version doesn't take networking into account yet.
// Only tested in FireFox, Safari, Chrome and Opera
// Will not work in IE <9 because getters and setters are used.
function TicTacToeClient(container, server) {
this.server = server;
@ -6,7 +8,6 @@ function TicTacToeClient(container, server) {
this.init();
}
TicTacToeClient.prototype.init = function() {
this.rows = 3;
this.spots = [];