freeboardgames / FreeBoardGames.org

FOSS platform for publishing boardgame.io games
https://www.FreeBoardGames.org
GNU Affero General Public License v3.0
251 stars 93 forks source link

[Infrastructure] Time limits and forced moves #494

Open sparr opened 4 years ago

sparr commented 4 years ago

I want to be able to set and enforce time limits (e.g. various online chess timing rules) on games. For some games, running out of time would be an immediate loss or player elimination. For others, the game could define a default/timeout move for each set of moves and the framework would perform that move when the player runs out of time in the current turn/stage. The definition of what should happen when a move is forced is more of a bg.io matter, so I've posted a parallel feature request over there. What we need here is a mechanism in the framework for regularly checking the status of games in progress to see if any time limits are exceeded and moves should be forced.

vdfdev commented 4 years ago

Definitely an useful feature. :)