]> git.cworth.org Git - empires-server/commit
Accept votes to advance game at /end-answers and /end-judging endpoints
authorCarl Worth <cworth@cworth.org>
Sat, 13 Jun 2020 21:38:28 +0000 (14:38 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 14 Jun 2020 21:58:53 +0000 (14:58 -0700)
commit54f57abe8bc6753da1c6b1663f1efcd178e33a75
tree9e839d3c87cc19c67e1adb891871c6960581c4b7
parent99db5b01aba2ee48a13a7a591efc8812e23d0beb
Accept votes to advance game at /end-answers and /end-judging endpoints

The previous logic was far too strict, where the game would advance
only after every registered player had submitted. That made it
possible for the game to become totally stuck with just a single
player that left the game, (or even that accidentally reloaded the
game in a way that lost their previous session).

Now there are endpoints for players to vote that they would like to
advance past either the "answers" or "judging" phases of the game, and
the game will advance as soon as a majority of the registered players
have voted.

This does still make it possible for the game to get stuck if a
sufficient number of players stop playing, but it's at least less
likely to happen. And we've got plans to improve this situation
further soon as well.
empathy.js