Do you miss something on BrainKing.com and would you like to see it here? Post your request into this board! If there is a more specific board for the request, (i.e. game rule changes etc) then it should be posted and discussed on that specific board.
Lista keskustelualueista
Sinulla ei ole oikeutta kirjoittaa tälle alueelle. Tälle alueelle kirjoittamiseen vaadittu minimi jäsenyystaso on Brain-Ratsu.
Otsikko: Really lose on time when you lost on time
Ever had that? I really need to leave, but I have only one hour for my move left in that game, so if I leave, I'll lose. But the opponent does not play either... so I wait and wait... finally, when his clock says -9 minutes, I leave. When I come back, I lost on time - he came, made a move (sitting on -9 minutes!) and won on time. Frustrating.
Now I understand that the timeout demon cannot be run every second (or the CPU would do nothing else), but what about this: Whenever someone goes to a game page to make his move (and the system knows that he is the user due to move), the remaining time for him is checked, and if it's <= 0, he loses right there. That would mean that without him opening the game, he could watch the time go to -1, -2, -3 mins, same as now, but he has already lost, the system just did not execute it yet. That would be fairer, and I think easy to do, without producing extra load on the server.
- this is my third idea in so many days; so if I bore you let me know. I thought they are all worthy. -
Otsikko: Re: Really lose on time when you lost on time
Aganju: It seems to me that BrainKing should never display a game as active if time has expired. I would almost certainly guess that the ending time of the game is what's stored in the database, so, in order to show the game page to a user, the time remaining must be calculated every time the game page is shown to the user. BrainKing should detect when the time remaining is negative and should end the game right then and there rather than show games with negative time remaining and allow users to continue to play in them.
Otsikko: Re: Really lose on time when you lost on time
Thad: Agreed. What you describe it slightly more than what I thought; basically whenever any page display finds a negative time, (instead of displaying it,) it triggers 'end the game'; I meant only when the opponent opens it. I think the latter is less effort to implement, but the former is nicer of course.
Otsikko: Re: Really lose on time when you lost on time
Aganju: No reason it couldn't timeout whenever *anyone* looks at the game... after all, it has to display the '-9' so it's already figured out the time is run out - the rest is trivial.
Otsikko: Re: Really lose on time when you lost on time
Thad: I'm assuming there is already a method called timeout(gameID) or something equivalent... simply a case of calling it when the page loads if timeRemaining(gameID) <= 0
I guess I'm assuming the site is coded reasonably well already.
(piilota) Häviätkö pelit ajan loppumisen takia? Maksava asiakas voi määritellä loma-ajan, jonka aikana aikalaskuri ei juokse. (pauloaguia) (näytä kaikki vinkit)