]> git.cworth.org Git - lmno-server/commitdiff
Consistently use null value to reset the ambiguities list
authorCarl Worth <cworth@cworth.org>
Fri, 26 Jun 2020 14:31:43 +0000 (07:31 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 26 Jun 2020 14:31:43 +0000 (07:31 -0700)
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

index 5c2bd18d2b86ff6dd11f29778f4aca7925a28f03..b7d01a0566c2d5b379db9ab90c3c77f4c8928bbd 100644 (file)
@@ -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();