diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-25 17:41:05 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:12:42 +0100 |
commit | 3daf6c4722e130a5158a1e60493e3f70ab4e6a0d (patch) | |
tree | f496ae73cb0110150d748a7820913b234189cce5 | |
parent | da87b88838d72c1c2592e9cb5b7b578b15583db5 (diff) | |
download | shores-of-tripoli-3daf6c4722e130a5158a1e60493e3f70ab4e6a0d.tar.gz |
New and improved join page with server sent events.
-rw-r--r-- | rules.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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, |