diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-25 17:41:05 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:12:55 +0100 |
commit | 1e2ce6bdf7d3cbeb5f010baec425dfe894f337da (patch) | |
tree | cd62aa6cc733d3c7d0cb8707c67e1923c8818da4 | |
parent | ef96e4701a45ac622bfb9ce8c8cf52166a099dcf (diff) | |
download | richard-iii-1e2ce6bdf7d3cbeb5f010baec425dfe894f337da.tar.gz |
New and improved join page with server sent events.
-rw-r--r-- | rules.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -3334,9 +3334,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: {}, |