09-07-2020, 07:38 AM
(This post was last modified: 09-07-2020, 07:38 AM by MatthewStephenson.)
Hi Alek,
Yes you are correct that tiles should be used when you want a piece to fill a cell, the syntax for your situation would be:
(tile "Triangle" Each numSides:3)
For coloring the neutral player you need to use graphics metadata, similar to that used for several other games (Feed the Ducks, Press Ups, etc.)
The syntax would be something like:
(graphics {
(player Colour Neutral (colour Yellow))
})
And this would need to be added to the metadata section at the end of the game description.
I have attached an updated version of our own inkBlots description in Ludii, hopefully to match your requests.
The language reference manual can certainly be a bit overwhelming. If you are having trouble finding a specific feature, I would suggest seeing if you can see other games on our ludii library webpage (ludii.games/library) that already include this, and then taking a look at their game descriptions to see how they achieve it. For example, we have several tile games (Andantino, Cram, Trax) that could provide assistance on how to use tiles.
Cheers,
Matthew
Yes you are correct that tiles should be used when you want a piece to fill a cell, the syntax for your situation would be:
(tile "Triangle" Each numSides:3)
For coloring the neutral player you need to use graphics metadata, similar to that used for several other games (Feed the Ducks, Press Ups, etc.)
The syntax would be something like:
(graphics {
(player Colour Neutral (colour Yellow))
})
And this would need to be added to the metadata section at the end of the game description.
I have attached an updated version of our own inkBlots description in Ludii, hopefully to match your requests.
The language reference manual can certainly be a bit overwhelming. If you are having trouble finding a specific feature, I would suggest seeing if you can see other games on our ludii library webpage (ludii.games/library) that already include this, and then taking a look at their game descriptions to see how they achieve it. For example, we have several tile games (Andantino, Cram, Trax) that could provide assistance on how to use tiles.
Cheers,
Matthew