]> git.cworth.org Git - empires-server/blobdiff - tictactoe.js
Plumb a game's ID value down into the base class
[empires-server] / tictactoe.js
index 11b4295df247ced277c82d8f1501369483a7a4e0..aba043c65eba8c1dbe04ef6034c6d54b8fa8fee1 100644 (file)
@@ -4,8 +4,8 @@ const Game = require("./game.js");
 const router = express.Router();
 
 class TicTacToe extends Game {
-  constructor() {
-    super();
+  constructor(id) {
+    super(id);
     this.moves = [];
     this.board = Array(9).fill(null);
   }