From aa245121ee40c82e9d96b246ab1fc63cb5fabc5f Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 27 Jun 2020 07:44:31 -0700 Subject: [PATCH] Add all players who have answered as "judging" when judging phase starts The rationale for this change is explained more fully in the commit message of the previous commit. This change fixes the failing test case added in the previous commit so the test suite now entirely passes again. --- empathy.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/empathy.js b/empathy.js index 35d5fc7..4fdd4b3 100644 --- a/empathy.js +++ b/empathy.js @@ -266,6 +266,12 @@ class Empathy extends Game { } this.broadcast_event_object('ambiguities', this.state.ambiguities); + + /* Notify all players of every player that is judging. */ + for (let player_name of this.state.players_answered) { + this.state.players_judging.add(player_name); + this.broadcast_event_object('player-judging', player_name); + } } reset_judging_timeout() { -- 2.43.0