Page 1 of 1

Move counter - what counts as a move?

Posted: 13 March 2021, 22:19
by Alex_tgiu
In my game,
- a player first selects a field -> which leads to a DB update and a game state change
- and then selects a direction to move -> which leads to notiications of the players and a game state change
- in a game action, the animations are carried out and the active player changes

If played in studio, I can see that the move counter gets increased for both player actions.
In a game history I thus can only see move 1, 3, 5, ...

So, what does count as a move and when exactly is the counter increased?
I thought a move is the whole period until the active player changes.

Re: Move counter - what counts as a move?

Posted: 14 March 2021, 01:44
by TheBoot
I think it's updated on each notification sent to the players, as those are what is shown in the log.

but I haven't checked so I'm not sure

Re: Move counter - what counts as a move?

Posted: 16 March 2021, 00:08
by Victoria_La
Move would batch of notification send from the action or state. If you have 2 states it would be 2 moves.
It actually not required to send notifaction for selection, its better just to hanlde it locally, i.e
player does selection then direction and when you send it to server.
There are few ways of doing it you can check https://en.doc.boardgamearena.com/BGA_S ... _Selection

Re: Move counter - what counts as a move?

Posted: 21 March 2021, 10:21
by Alex_tgiu
Thanks for the insight, I'll check that out.