From: Carl Worth Date: Fri, 26 Jun 2020 14:31:43 +0000 (-0700) Subject: Consistently use null value to reset the ambiguities list X-Git-Url: https://git.cworth.org/git?p=lmno-server;a=commitdiff_plain;h=7cfa4c75739452a6022e2266cc4d6444ef79f4a5 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. --- 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();