X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=tictactoe.js;h=35019840cc13a68fa225482610876e9c5c3b5932;hb=16564f558ee42c3fbc0ca5ee56c91407253747b5;hp=da55c9f48e42c663f3e4016acaf6f4f083f15061;hpb=5c589dc3c8016c2f43174b1cf6de3e934835a142;p=lmno-server diff --git a/tictactoe.js b/tictactoe.js index da55c9f..3501984 100644 --- a/tictactoe.js +++ b/tictactoe.js @@ -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. */