From 7cfa4c75739452a6022e2266cc4d6444ef79f4a5 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 26 Jun 2020 07:31:43 -0700 Subject: [PATCH] Consistently use null value to reset the ambiguities list The constructor has always been setting ambiguities to null, but on game reset it was getting set to 0 instead. The test suite noticed this inconsistency, which we fix here to make a recently-added test start passing. --- empathy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/empathy.js b/empathy.js index 5c2bd18..b7d01a0 100644 --- a/empathy.js +++ b/empathy.js @@ -55,7 +55,7 @@ class Empathy extends Game { this.state.players_answering = new Set(); this.state.answering_idle = false; this.state.end_answers = new Set(); - this.state.ambiguities = 0; + this.state.ambiguities = null; this.state.players_judged = []; this.state.players_judging = new Set(); this.state.end_judging = new Set(); -- 2.43.0