]> git.cworth.org Git - lmno-server/commit
Use set difference (ANSWERED - JUDGED) to determine whether to advance
authorCarl Worth <cworth@cworth.org>
Sun, 28 Jun 2020 00:52:06 +0000 (17:52 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 28 Jun 2020 00:52:06 +0000 (17:52 -0700)
commit23ab0d1f2fe34ae413a3a37dc6c01855148f16b9
tree2c35aa5486eb597945540ba0fce4455e15a52dd3
parentd77b8410640b3b6279999a064945c5c8c1d54a05
Use set difference (ANSWERED - JUDGED) to determine whether to advance

This is a bug fix for the bug described and tested in the previous
commit. Previously we were simply comparing the count of players who
had judged with the count of those who had answered.

Here, instead, we compute an actual set difference and only
auto-advance from the judging phase when every player who answered has
also completed judging.

This fix causes the test added in the previous comit to start passing,
so now the entire test suite is passing once again.
empathy.js