Shuffle iT Forum

Dominion => Feature Requests => Topic started by: vinay on 28 April 2018, 09:07:35 AM

Title: Feature request: give chance to resign when quitting browser window
Post by: vinay on 28 April 2018, 09:07:35 AM
I've had a few games lately where the other player has disconnected during my last turn or at some point where it was obvious that they would lose. Currently, I am waiting for my opponent to time out because I had to play a militia to get 8 to buy the last province, and they disconnected.

These don't appear to be malicious players, I think that they're thinking that they are quitting, but in reality, they are forcing their other player to wait for 5 minutes to force them to resign.

A little javascript can pop up a window when the user closes their browser window that asks them if they meant to resign, which would prevent this from happening accidentally.
Title: Re: Feature request: give chance to resign when quitting browser window
Post by: santamonica811 on 29 April 2018, 09:44:34 PM
Excellent suggestion!!!
Title: Re: Feature request: give chance to resign when quitting browser window
Post by: vinay on 03 June 2018, 09:29:35 AM
Bumping this. It's a feature that should be relatively easy to implement and I think would be welcomed by most.
Title: Re: Feature request: give chance to resign when quitting browser window
Post by: LastFootnote on 22 June 2018, 09:52:16 PM
I hate hate hate it when a site pops up a dialog when I try to close its tab/window. I do not appreciate having my browser hijacked. Now if there's some way to send a message to the server without popping up a dialog or otherwise disrupting the browser, I'm tentatively for it. If not, I'm against doing this. Having to occasionally wait for a user to time out is a small price to pay for not having a terrible dialog pop up.

And to be clear, I try to always resign if I have to suddenly leave a game. I still don't want this feature.
Title: Re: Feature request: give chance to resign when quitting browser window
Post by: Donald X. on 23 June 2018, 10:42:56 AM
I agree that a dialog box that appears when you try to close a window is extremely odious.

Couldn't closing the window just automatically resign you? I'm not sure why we need to ask there. You closed the window.
Title: Re: Feature request: give chance to resign when quitting browser window
Post by: LastFootnote on 23 June 2018, 03:30:15 PM
From my cursory research, that would also make refreshing the page resign you.

And in general we want people to be able to quit their browsers and the re-enter a game, perhaps even on a different machine. I've done that more than once.
Title: Re: Feature request: give chance to resign when quitting browser window
Post by: Donald X. on 23 June 2018, 08:00:49 PM
Quote from: LastFootnote on 23 June 2018, 03:30:15 PM
From my cursory research, that would also make refreshing the page resign you.

And in general we want people to be able to quit their browsers and the re-enter a game, perhaps even on a different machine. I've done that more than once.
Maybe it could put you on a faster timer? We know you aren't thinking.
Title: Re: Feature request: give chance to resign when quitting browser window
Post by: markus on 24 June 2018, 11:25:55 AM
I guess there are people who don't know that closing the window doesn't resign the game. So it might be good to have that popup but also allow disabling it in the option.
Title: Re: Feature request: give chance to resign when quitting browser window
Post by: vinay on 25 June 2018, 09:02:34 PM
An option to disable the pop-up would be fine, but also strikes me as unnecessary. "Close the browser before resigning the game" should be something that pretty much never happens; I know it's annoying to have something pop up when you are trying to exit something, but considering that it would only pop up in the rare instance where you are quitting when a game is running, it shouldn't affect you very often - and in the cases where it does, it's a good thing. If you're always resigning before you leave, you'll never even see the popup.

I wouldn't really want to give a faster timer for users who disconnect - there are times where you lose connection and it's legitimate to give players a decent chance to reconnect in those cases.