simplified, added some documentation
This commit is contained in:
parent
20a07dbd6a
commit
8e468b5eec
5 changed files with 64 additions and 44 deletions
|
@ -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 = [];
|
||||
|
|
Reference in a new issue