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:08:56 +0100 |
commit | d210abfa0f3656f85546ac9c6ed89d3cd0e26b7c (patch) | |
tree | af0fd601924e216a480eca5b7eb475063ddf818d /rules.js | |
parent | d588989572d70b83cdc62246b790c805e9b6168b (diff) | |
download | julius-caesar-d210abfa0f3656f85546ac9c6ed89d3cd0e26b7c.tar.gz |
New and improved join page with server sent events.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2271,9 +2271,11 @@ states.game_over = { }, } +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 = { tournament: (scenario == "Tournament"), state: null, |