Move counter - what counts as a move?

Game development with Board Game Arena Studio
Post Reply
User avatar
Alex_tgiu
Posts: 59
Joined: 28 December 2020, 22:11

Move counter - what counts as a move?

Post 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.
User avatar
TheBoot
Posts: 11
Joined: 22 January 2012, 22:57

Re: Move counter - what counts as a move?

Post 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
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Move counter - what counts as a move?

Post 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
User avatar
Alex_tgiu
Posts: 59
Joined: 28 December 2020, 22:11

Re: Move counter - what counts as a move?

Post by Alex_tgiu »

Thanks for the insight, I'll check that out.
Post Reply

Return to “Developers”