Open Albin-Rohde opened 3 years ago
Add inactive player feature.
This means that player can set themselves to inactive, there should be a visual que to other players in the game. That a player has set themselves to inactive. This could be i.e graying out the player name in playerinfo.
When a player is inactive the game should skip them, when it becomes their turn to be card wizz. The game should not wait for that player to play a card each turn.
This could be achieved by having some kind of state on the user in db, active: boolean
. We would have to change frontend to look at this field when determining players. Backend would have to look at this field when determining when everyone has played etc.
Leave game
Either remove player from game, and remaining round
Or
Make game skip player for remaning rounds, until player return, or game ends
Make game skip the entire "turn" where the player would have been card wizz. This however.
This could be abused since the player could skip on purpose every time it's thats players turn to be card wizz.
This could be solved, either by not letting player rejoin again. Or by some kind of penelty.