08-16-2020, 03:45 PM
Hi,
Ok we effectively have a bug in (forEach Piece ...) if we have some specific moves defined directly in the (forEach Piece ...) and not in the generator of the moves in the pieces and if the player of the (forEach Piece ....) is not the mover.
I just fixed it in our dev version and will be published with the next release.
But with your current version you can make it to work if you do not use the <Moves> parameter in the (forEach Piece ...) ludeme and define the move you currently define in that ludeme directly in the pieces like (e.g. (piece "Ball" Each (move Slide)))
(play
(move
Add
(to
(difference
(sites Empty)
(sites To (forEach Piece Next ))
)
)
)
)
Sorry for the inconvenience.
Regards,
Eric Piette
Ok we effectively have a bug in (forEach Piece ...) if we have some specific moves defined directly in the (forEach Piece ...) and not in the generator of the moves in the pieces and if the player of the (forEach Piece ....) is not the mover.
I just fixed it in our dev version and will be published with the next release.
But with your current version you can make it to work if you do not use the <Moves> parameter in the (forEach Piece ...) ludeme and define the move you currently define in that ludeme directly in the pieces like (e.g. (piece "Ball" Each (move Slide)))
(play
(move
Add
(to
(difference
(sites Empty)
(sites To (forEach Piece Next ))
)
)
)
)
Sorry for the inconvenience.
Regards,
Eric Piette