fg123 / lumen-astrum-js

A territory capturing game for 4 players.
https://lumen-astrum.felixguo.me
5 stars 0 forks source link

Cannot leave game once game is forfieted, infinite games #66

Open SolomonYu opened 4 years ago

SolomonYu commented 4 years ago

Cannot leave game once game is forfieted, if a game is not properly ended, the account cannot start a new game Also, how can we end a game if it's inactive for a long time?

Solution: Leave game button?

fg123 commented 4 years ago

Pog champ, FF-ing seems to work in our playtests, is there anything weird / different with your games?

SolomonYu commented 4 years ago

ff works fine, but if you ff and other people are still playing, you can't leave the game. use case: players a,b,c in a game player a forfiets and wants to play another game player b,c proceed to play an intense 4 hour match player a needs to finish watching before starting a new game

SolomonYu commented 4 years ago

another case: players a,b player a closes the browser without winnning player b forfiets game is still running until a wins b wants to start another game, but cannot a never touches the game again, effectively locking b's account

fg123 commented 4 years ago

The game ends when one player is remaining, so if b forfeits, the game ends.

Makes sense for the first case with a,b,c, we'll let someone leave the game after they ff. Also, maybe we add a disconnect timer so if you're gone for more than 5-10 mins you ff automatically.

SolomonYu commented 4 years ago

sorry, above case should be a,b,c. same deal, a,b leave, c is forfieted

but yeah that leave after ff would fix the problem. i was talking to alexi about a disconnect timer, and he mentioned the situation where two people are playign and want to take a break. idk if that's feasable, maybe just a disconenct timer would be better

fg123 commented 4 years ago

To support taking a break the game would have to support pausing and restarting, which I guess is possible too, not sure if that's a high value add right now but can be part of roadmap.