/* If every player who answered has also judged, then there's no
* need to wait for anything else. */
- if (game.state.players_judged.length >= game.state.players_answered.length)
+ const judged_set = new Set(game.state.players_judged);
+ if ([...game.state.players_answered].filter(x => !judged_set.has(x)).length === 0)
game.compute_scores();
});