hanabi-live
hanabi-live copied to clipboard
Display idle timeout in frontend
Me and a couple of friends were playing the new "Throw It In A Hole" variant. One particular move showed a player an inconsistency between the perceived game state and actual game state. The player in question had to go back and reinterpret every move previously made - which takes some time.
After several long minutes of thinking the player was ready to make their move. However the game was suddenly terminated with the message "Players were idle for too long".
It is understandable that there is a timeout. However there should be a warning or some sort of indication in the frontend before this happens. That way the players of a game can react accordingly - instead of being surprised that the game is suddenly over.
can you submit a pr
I'm thinking how this should be done in a nice way. The server only updates the idle timer if an action or a shared replay action is sent to the server. Maybe a "Are you still there" message could be sent to the client after say 20 minutes. If it its answered within the next 10 minutes then you have another 30 minutes to idle?
seems fine