const router = express.Router();
class TicTacToe extends Game {
- constructor() {
- super();
+ 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. */
name: "Tic Tac Toe",
identifier: "tictactoe"
};
-
-exports.meta = TicTacToe.meta;