Ludii Forum
Pentomino - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Suggestions (https://ludii.games/forums/forumdisplay.php?fid=10)
+--- Forum: Submit Your Games (https://ludii.games/forums/forumdisplay.php?fid=23)
+--- Thread: Pentomino (/showthread.php?tid=697)



Pentomino - fbarbe - 08-29-2021

Hi,
I wrote Golomb's game (Pentomino) as described here: https://en.wikipedia.org/wiki/Pentomino#Board_game .

I initially wrote all the different blocks as tiles belonging to each player. When using (move Add ...), Ludii only allows the player to place the first tile in the list and ignores the rest.
This is not the behaviour I was expecting, as I want the player to choose the tile and rotation without needing to add a handSite.

I did implement it with a shared handSite in the end.

Best,
Fabio

I did not manage to colour each tile with a different colour, could you please let me know how that can be done? (player Colour All "T" (colour Red)) did not work


RE: Pentomino - Eric Piette - 09-07-2021

Hi,

I just tried your .lud of Pentomino with the shared hand and it seems to work fine as a quick test.
When you drag a piece from the hand, you can rotate the piece by clicking on "R" on your keyboard before placing it somewhere.

For the colours, I am going to ask Matthew to answer you.

Regards,
Eric


RE: Pentomino - MatthewStephenson - 09-07-2021

Hi Fabio,

The syntax for changing piece colour would be:

(piece Colour "T" fillColour:(colour Red))

Note that this currently doesn't work if the piece is in the hands, but it does on the board. I'll try and update that for the next release.

Cheers,
Matthew


RE: Pentomino - fbarbe - 09-23-2021

Hi,
Will this game be included in the next release?
Best,
Fabio


RE: Pentomino - Eric Piette - 09-24-2021

Hi Fabio,

I am waiting for you to send me the final version to add to the next release. You said that the colours were not done, in the version I have from you all the pieces are black.

Please update your file to be final and be sure all the rules are working and all the colours and GUI are final too before inclusion to the next jar.

Regards,
Eric


RE: Pentomino - fbarbe - 09-26-2021

Hi Eric,

Here is the final version. The only thing I have changed are the graphics.

Note that adding an alpha value of 1 (not transparent) did not colour the pieces at all (the pieces weren't visible).
Code:
(piece Colour "F" fillColour:(colour 221 187 153 1))
does not seem to work, but

Code:
(piece Colour "F" fillColour:(colour 221 187 153))
does

Best,
Fabio


RE: Pentomino - Eric Piette - 09-27-2021

Hi,

Ok, I added this game to the dev version it will be in the next release.
Matthew is going to look at the comment for the parameter of this graphic metadata.

Regards,
Eric


RE: Pentomino - MatthewStephenson - 09-27-2021

Hi Fabio,

Alpha values are between 0 (fully transparent) and 255 (fully opaque)

Cheers,
Matthew