diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-25 17:41:05 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 12:53:17 +0100 |
commit | 2fe3301ee70a7eedaa45f4ba5a9578e31c8e279f (patch) | |
tree | 89d5bb5105656c2e6a951cf3be2411dbb2d1c16d | |
parent | e7209785dae10f912434881ee75ee433b8b1f98b (diff) | |
download | hammer-of-the-scots-2fe3301ee70a7eedaa45f4ba5a9578e31c8e279f.tar.gz |
New and improved join page with server sent events.
-rw-r--r-- | rules.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2797,9 +2797,11 @@ function make_battle_view() { return battle; } +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 = { attacker: {}, border_limit: {}, |