summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dccfff8)
Players who are inactive, (whether they registered and then never
submitted answers, or submitted answers but then didn't submit any
judging results), should not be able to sway the results of the
judging.
This commit fixes the failing test case of the previous commit so that
the entire test suite is passing once again.
/* Perform a (non-strict) majority ruling on equivalencies,
* dropping all that didn't get enough votes. */
/* Perform a (non-strict) majority ruling on equivalencies,
* dropping all that didn't get enough votes. */
- const quorum = Math.floor((this.players.length + 1)/2);
+ const quorum = Math.floor((this.state.players_judged.length + 1)/2);
const agreed_equivalencies = Object.values(this.equivalencies).filter(
eq => eq.count >= quorum);
const agreed_equivalencies = Object.values(this.equivalencies).filter(
eq => eq.count >= quorum);