Setting the initial game time

Game development with Board Game Arena Studio
Post Reply
User avatar
Vikti
Posts: 7
Joined: 08 January 2021, 23:56

Setting the initial game time

Post by Vikti »

Hi,

I'm adapting a 2-player abstract logic game to BGA (Castle of Mind), and it has strict rules around the maximum length of the game.

A default game should provide 15 minutes to each player, without any additional time when they've moved.

I could set

Code: Select all

'estimated_duration' => 30, 
'fast_additional_time' => 0,
'medium_additional_time' => 0,           
'slow_additional_time' => 0,           
what is the recommended way to set the player time to 15 minutes?
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Setting the initial game time

Post by Victoria_La »

You can do that but timeout does not end the game (if you ever played on bga), so if you want to enforce it has to be done programmatically.
I.e. first you have to disable all turn based modes and all real time modes but one.
When individual player times out end the game (on the server side), there some API to query a player timers.
Post Reply

Return to “Developers”