]> git.cworth.org Git - empires-server/blobdiff - tictactoe.js
tictactoe: Use empty strings instead of null objects for empty squares
[empires-server] / tictactoe.js
index 1f559bde50c1a91be83cd2847d6d6cefe990650b..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. */