Page 1 of 1
site web / color pref
Posted: 09 April 2021, 18:46
by Abraham fr
hello

I do not understand how the prefered colors as picked up.
Let's go to an example :
https://boardgamearena.com/9/lagranja?table=161872095
Player A (Abraham) has a color pref of blanc gris rose noir
(white gray pink black)
Player B (Mamiso90)
vert jaune gris blanc
(
green yellow gray white)
and the game was played as
player A
green (player B first pref !!!! absolutely NOT in player A choice)
player B
yellow (second pref)
Why not
player A first pref = white
player B first pref = green ?
Re: site web / color pref
Posted: 09 April 2021, 19:08
by MoiMagnus
As far as I know, colours are chosen in player order, so the fact that green was the favourite colour of player B is irrelevant for the choice of colour of player A.
So let's look at player A preference: white gray pink black
None of them are available (available colours: blue, red, green, yellow), so there is an algorithm that tries to determine which of the available colour is the best match. The choice of green looks quite dubious here IMO, but I guess that since this green is a light green and not a dark green, it ends up mathematically closer to white than the other colours, hence considered the best match.
Re: site web / color pref
Posted: 09 April 2021, 21:07
by Abraham fr
You lost me there....
OK for a choice player after player.
But were do you get the color choice ?
(available colours: blue, red, green, yellow)
Why offer preferences for colors not avaiable ?
the mystery get deeper.....

Re: site web / color pref
Posted: 09 April 2021, 21:22
by coxy5
Some games have set colours depending on what comes in the box. Hence why only four colours are available for la granja.
Re: site web / color pref
Posted: 09 April 2021, 21:42
by paramesis
BGA game developers don't have access to the implementation of the function that assigns player colors from preferences, but the feature is documented here:
http://en.doc.boardgamearena.com/Main_g ... references
Some important things to note: available player colors vary by game, and this feature cannot add a new player color to a game that doesn't already support it. In your example, La Granja doesn't have white as an available player color, so it will try to match one of the game's existing colors (red, green, blue, yellow), with one of your preferences if possible. There are other games, such as Troyes or Amyitis that do have a white player color, for which that preference would work.
As MoiMagnus suggested, the algorithm does seem to support colors that are not an exact match, such as accepting a light blue for blue, but it is otherwise not very sophisticated. It will assign colors for one player at a time. If there is no preference, or none matches the available colors in the game, the color will be assigned randomly. This is not ideal, because the color randomly assigned might just happen to be another player's first choice.
The order this happens appears to be random, as can be seen in this suggestion report, where the player third in turn order was the second to be assigned a color, and happened to get the first choice of the player who was second in turn order.
https://boardgamearena.com/bug?id=33125
Re: site web / color pref
Posted: 09 April 2021, 23:09
by MoiMagnus
Abraham fr wrote: ↑09 April 2021, 21:07
But were do you get the color choice ?
As said by others, I've looked at the rulebook of La Granja and searched for the 4 available colours in the IRL game.
If the IRL game has colours associated to each player, the BGA game uses the same colours.
If the IRL game does not, the BGA game uses the set of BGA colours (the one you can see in your preferences).
Re: site web / color pref
Posted: 10 April 2021, 08:09
by Abraham fr
That clarify it !

Thanks a lot for your deteilled answers.