]> git.cworth.org Git - empires-server/blobdiff - tictactoe.js
Drop the meta property from the game exports object.
[empires-server] / tictactoe.js
index 11b4295df247ced277c82d8f1501369483a7a4e0..1f559bde50c1a91be83cd2847d6d6cefe990650b 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);
   }
@@ -65,5 +65,3 @@ TicTacToe.meta = {
   name: "Tic Tac Toe",
   identifier: "tictactoe"
 };
-
-exports.meta = TicTacToe.meta;