X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=tictactoe.js;h=1f559bde50c1a91be83cd2847d6d6cefe990650b;hb=bb50292173f978457b4b64d6495db96cd581a4d6;hp=12bf6801ac0f20e4f36e444bbb9fab1909fce116;hpb=40abb70f85a1f833c6dfcc8541db3bf876096616;p=empires-server diff --git a/tictactoe.js b/tictactoe.js index 12bf680..1f559bd 100644 --- a/tictactoe.js +++ b/tictactoe.js @@ -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); } @@ -67,5 +65,3 @@ TicTacToe.meta = { name: "Tic Tac Toe", identifier: "tictactoe" }; - -exports.meta = TicTacToe.meta;