working GGS simulator in JS
This commit is contained in:
parent
a275990f62
commit
20a07dbd6a
8 changed files with 483 additions and 5 deletions
16
games/tic-tac-toe-js/js/GGS.js
Normal file
16
games/tic-tac-toe-js/js/GGS.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
function GGSI(game_name) {
|
||||
var world = new Storage(game_name, "world");
|
||||
this.__defineGetter__("world", function(){
|
||||
return world;
|
||||
});
|
||||
|
||||
var localStorage = new Storage(game_name, "localStorage");
|
||||
this.__defineGetter__("localStorage", function(){
|
||||
return localStorage;
|
||||
});
|
||||
|
||||
var game_n = game_name;
|
||||
this.__defineGetter__("users", function(){
|
||||
return GameServerI.users(game_n);
|
||||
});
|
||||
}
|
Reference in a new issue