hanabi-live icon indicating copy to clipboard operation
hanabi-live copied to clipboard

Display idle timeout in frontend

Open tkw1536 opened this issue 2 years ago • 3 comments

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.

tkw1536 avatar Mar 22 '22 21:03 tkw1536

can you submit a pr

Zamiell avatar Mar 22 '22 21:03 Zamiell

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?

Krycke avatar Dec 16 '22 13:12 Krycke

seems fine

Zamiell avatar Dec 16 '22 13:12 Zamiell