]> git.cworth.org Git - lmno-server/commitdiff
To rule on the judging "Move On" button require a maority of answered players
authorCarl Worth <cworth@cworth.org>
Sun, 14 Jun 2020 23:40:35 +0000 (16:40 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 25 Jun 2020 16:16:04 +0000 (09:16 -0700)
At this point in the game we know a reliable number of players that
are actually "in" this round, so use that when determining the
majority required.

empathy.js

index abaf72f247fc5f796a79e49df594e4702124e6c5..eeb33c2c6be229e83155a622ee07e63be3212e9b 100644 (file)
@@ -520,7 +520,7 @@ router.post('/end-judging/:prompt_id([0-9]+)', (request, response) => {
   else
     response.sendStatus(404);
 
-  if (game.state.end_judging.size > (game.state.players_judged.length / 2))
+  if (game.state.end_judging.size > (game.state.players_answered.length / 2))
     game.compute_scores();
 });