]> git.cworth.org Git - empires-server/blobdiff - empathy.js
Consistently use null value to reset the ambiguities list
[empires-server] / empathy.js
index 4b7b5a9d3b9ee1f25c921240790e7608a2d282bc..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();
@@ -550,6 +550,8 @@ router.post('/end-judging/:prompt_id([0-9]+)', (request, response) => {
 router.post('/reset', (request, response) => {
   const game = request.game;
   game.reset();
+
+  response.send('');
 });
 
 Empathy.meta = {