01-04-2021, 09:27 AM
Hi,
I think you got it when I read the last part of your message, that's normal.
A step move is working only to the sites directly related to direction specified.
Consequently if you do not specified any direction, the piece can move to any adjacent sites.
BUT to restrict that, you need to specify a condition on the 'to' site.
Example:
(move Step
(to if:(is Empty (to)))
)
And not a RegionFunction, which will have no sense here because the regionFunction is implied by the direction of the step move. So going to all the empty sites will be just not possible here with a step move, consequently that RegionFunction is just ignored by the (move Step ...) ludeme.
Regards,
Eric
I think you got it when I read the last part of your message, that's normal.
A step move is working only to the sites directly related to direction specified.
Consequently if you do not specified any direction, the piece can move to any adjacent sites.
BUT to restrict that, you need to specify a condition on the 'to' site.
Example:
(move Step
(to if:(is Empty (to)))
)
And not a RegionFunction, which will have no sense here because the regionFunction is implied by the direction of the step move. So going to all the empty sites will be just not possible here with a step move, consequently that RegionFunction is just ignored by the (move Step ...) ludeme.
Regards,
Eric