11-02-2020, 02:08 PM
(10-14-2020, 03:27 PM)Eric Piette Wrote: Hi,
Yes you can use the shared player for that. The shared pieces belongs to each player, the neutral piece to no player.
However, you detected a bug ;) Because I tried to use (forEach Piece Neutral) before to answer to you, and that creates a bug. So we will fix it for the next release.
Thank you for that.
Regards,
Eric
Hey, I would actually like to follow up on the original question: How do I use the Shared role to define pieces that every player can move in their turn? From the Language Reference doc, I would see two possible ways but none of them works: Define a piece "Disc" as "Shared" and then place it as a) "Disc" or b) "Disc3" (for a two-player game). a) compiles but doesn't result in legal moves and b) throws an error. (I'm attaching the modification of the OPs file).
Thanks