11-16-2020, 09:24 AM
Hi,
With the ludeme (is Loop ...), I do not think no and I am not sure if we want that ludeme to do that. Because considering the edges of the board to be part of the pieces looping sites is a really specific case and that's technically not a loop of your pieces but of your pieces and of the edges of the board. Consequently that's not a loop created with pieces.
However, the move ludeme (enclose ...) is computing such sites enclosed by pieces (and including the edges of the board because here we do speak about loop, just about enclosing sites).
To translate a move ludeme to a boolean condition you can use (can Move ...)
so something like (if (can Move (enclose ...)) ...) should do what you expect I guess.
Regards,
Eric
With the ludeme (is Loop ...), I do not think no and I am not sure if we want that ludeme to do that. Because considering the edges of the board to be part of the pieces looping sites is a really specific case and that's technically not a loop of your pieces but of your pieces and of the edges of the board. Consequently that's not a loop created with pieces.
However, the move ludeme (enclose ...) is computing such sites enclosed by pieces (and including the edges of the board because here we do speak about loop, just about enclosing sites).
To translate a move ludeme to a boolean condition you can use (can Move ...)
so something like (if (can Move (enclose ...)) ...) should do what you expect I guess.
Regards,
Eric