02-08-2021, 10:49 AM
(This post was last modified: 02-08-2021, 10:49 AM by Eric Piette.)
Hi,
The step move needs a single location to work.
But here you have "(from (sites Occupied by:Mover))"
Which is a regionFunction.
I modified a bit the code in our dev version to return an empty set of moves if no single site is provided to the step move.
So the error you got right now in doing that will not be there in the next release.
However for your description, you should use a piece generator in the pieces (so describing the moves of the pieces in the (piece ...) ludeme and using (forEach Piece ...) in the playing rules.
You can read examples in many game descriptions. The simplest one is maybe Breakthrough.
----
For the limit in Slide, we already have that.
You need to describe it in the (between ...) part
(move Slide (between (max <IntFunction>)))
All the ranges are handled with RangeFunction, and for such moves you can describe them inside the (between ...) part.
Regards,
Eric
The step move needs a single location to work.
But here you have "(from (sites Occupied by:Mover))"
Which is a regionFunction.
I modified a bit the code in our dev version to return an empty set of moves if no single site is provided to the step move.
So the error you got right now in doing that will not be there in the next release.
However for your description, you should use a piece generator in the pieces (so describing the moves of the pieces in the (piece ...) ludeme and using (forEach Piece ...) in the playing rules.
You can read examples in many game descriptions. The simplest one is maybe Breakthrough.
----
For the limit in Slide, we already have that.
You need to describe it in the (between ...) part
(move Slide (between (max <IntFunction>)))
All the ranges are handled with RangeFunction, and for such moves you can describe them inside the (between ...) part.
Regards,
Eric