You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If 3 players are playing a game and one leaves, then the game is horked because the move of the player that left does not timeout. This is because the timer is running on the client and not the server.
Two options to solve:
have timer/timeout be on the server in addition to or instead of on the client.
Detect that a player leaves (when they click new game button or leave page) and send a signal that they have resigned. The result should be the same as if they are conquered. All their armies should be removed.
The text was updated successfully, but these errors were encountered:
Maybe we can add an explicit resign button to help with testing. When it works, then clicking new or leaving the page should be the same as clicking resign (if in an active game). Then the resign button could be removed.
I changed the "reset" button at the bottom to "resign". The player can resign when it is their move.
If a player leaves during a game they will end up resigning after a timeout period. However, I don't think it will work if more than 1 player leaves at once. To do it correctly, we may want the timeout timer on the server.
If 3 players are playing a game and one leaves, then the game is horked because the move of the player that left does not timeout. This is because the timer is running on the client and not the server.
Two options to solve:
The text was updated successfully, but these errors were encountered: