Page 1 of 1
Undo player elimination
Posted: 01 January 2018, 19:34
by quietmint
My game eliminates players throughout the round/hand, and then a new round begins with all players back in the game again. In other words, elimination is only temporary. What's the best way to handle this within BGA framework? Can I reverse the effects of
self::eliminatePlayer(), or do I need to manage the per-round elimination -- and the turn order

-- manually?
Re: Undo player elimination
Posted: 01 January 2018, 20:17
by Een
Well the goal of self::eliminatePlayer() is to free the eliminated players so that they can take part in another game, so... if you need to keep them in the game, you indeed have to handle in-game elimination and turn order manually.
Re: Undo player elimination
Posted: 02 January 2018, 04:01
by quietmint
Okay, makes sense. In that case, there's a bug -- we should never show "Get back in the game" button (<div id="zombieBack">) to players who have been eliminated, because there's no method to reverse/undo elimination. I suppose this is only for
non-eliminated zombie players?

- Screen Shot 2018-01-01 at 21.58.34.png (61.01 KiB) Viewed 2284 times
Likewise, "Get back in the game" should not be visible/allowed after the game is over.

- Screen Shot 2018-01-02 at 00.30.48.png (126.91 KiB) Viewed 2280 times
Re: Undo player elimination
Posted: 02 January 2018, 11:39
by Een
Yes, this should only happen for non-eliminated zombie players. You mean that it happens with eliminated non-zombie players?
Re: Undo player elimination
Posted: 02 January 2018, 15:46
by quietmint
If player is both zombie and eliminated, it happens when it should not.
If game is over, it happens when it should not.