Half points

Game development with Board Game Arena Studio
Post Reply
User avatar
MasN
Posts: 75
Joined: 26 December 2015, 23:45

Half points

Post by MasN »

I want to develop a game where the second player starts with +10.5 points as compensation. After that, all points are integers. Is there a way to implement half a point on BGA?
User avatar
Kayvon
Posts: 1069
Joined: 17 October 2011, 01:39

Re: Half points

Post by Kayvon »

The score attribute must always be an integer. You can work around it by signalling to your JS client when it should override the display with 10.5.
User avatar
thoun
Posts: 1620
Joined: 10 December 2020, 22:25

Re: Half points

Post by thoun »

You can store points multiplied by 2 or 10 in the DB.

Another solution, if you don't have a tiebreaker, is to put the half point as the tiebreaker.
Post Reply

Return to “Developers”