]> git.cworth.org Git - empires-server/blobdiff - tictactoe.js
Drop the meta property from the game exports object.
[empires-server] / tictactoe.js
index ca67834ecc5790da0a1d125b9a0038d4a58a28cf..1f559bde50c1a91be83cd2847d6d6cefe990650b 100644 (file)
@@ -1,13 +1,11 @@
 const express = require("express");
 const Game = require("./game.js");
 
-const engine_name = "tictactoe";
-
 const router = express.Router();
 
 class TicTacToe extends Game {
-  constructor() {
-    super(engine_name);
+  constructor(id) {
+    super(id);
     this.moves = [];
     this.board = Array(9).fill(null);
   }
@@ -61,12 +59,9 @@ router.get('/events', (request, response) => {
 });
 
 exports.router = router;
-exports.name = engine_name;
 exports.Game = TicTacToe;
 
 TicTacToe.meta = {
   name: "Tic Tac Toe",
   identifier: "tictactoe"
 };
-
-exports.meta = TicTacToe.meta;