]> git.cworth.org Git - lmno-server/blobdiff - tictactoe.js
tictactoe: Use empty strings instead of null objects for empty squares
[lmno-server] / tictactoe.js
index aba043c65eba8c1dbe04ef6034c6d54b8fa8fee1..f9b357bf3202dfbc84443818dbd3626958e5f307 100644 (file)
@@ -7,7 +7,7 @@ class TicTacToe extends Game {
   constructor(id) {
     super(id);
     this.moves = [];
-    this.board = Array(9).fill(null);
+    this.board = Array(9).fill("");
   }
 
   /* Returns Boolean indicating whether move was legal and added. */
@@ -65,5 +65,3 @@ TicTacToe.meta = {
   name: "Tic Tac Toe",
   identifier: "tictactoe"
 };
-
-exports.meta = TicTacToe.meta;