]> git.cworth.org Git - lmno-server/blobdiff - tictactoe.js
game/tictactoe: Expand player to include a team property
[lmno-server] / tictactoe.js
index da55c9f48e42c663f3e4016acaf6f4f083f15061..35019840cc13a68fa225482610876e9c5c3b5932 100644 (file)
@@ -9,6 +9,7 @@ class TicTacToe extends Game {
       board: Array(9).fill(""),
       next_player: "X",
     };
+    this.teams = ["X", "O"];
   }
 
   /* Returns true if move was legal and added, false otherwise. */