From 3daf6c4722e130a5158a1e60493e3f70ab4e6a0d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 25 Jun 2021 17:41:05 +0200 Subject: New and improved join page with server sent events. --- rules.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 56d4411..1e88747 100644 --- a/rules.js +++ b/rules.js @@ -2757,9 +2757,11 @@ states.game_over = { // SETUP +exports.ready = function (scenario, players) { + return players.length === 2; +} + exports.setup = function (scenario, players) { - if (players.length != 2) - throw new Error("Invalid player count: " + players.length); game = { state: null, year: 1801, -- cgit v1.2.3