X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=empires.js;h=cb7571d67ef3ff81934593cf76c8b5c407c65ce6;hb=2fb7ba00b458f94dff3e924b245c8f02dc20525a;hp=78e7f2591d6b18cd14927b466d0f7b55399a1d94;hpb=40abb70f85a1f833c6dfcc8541db3bf876096616;p=empires-server diff --git a/empires.js b/empires.js index 78e7f25..cb7571d 100644 --- a/empires.js +++ b/empires.js @@ -1,8 +1,6 @@ const express = require("express"); const Game = require("./game.js"); -const engine_name = "empires"; - const router = express.Router(); const GameState = { @@ -34,8 +32,8 @@ function shuffle(a) { } class Empires extends Game { - constructor() { - super(engine_name); + constructor(id) { + super(id); this._spectators = []; this.next_spectator_id = 1; this._players = [];