11-17-2020, 12:22 PM
The BooleanFunction (is loop ...) or the Move (enclose ...) starts from a specific site (not anywhere on the board). In general checking the (last To) site is enough in the consequence of the move adding/moving a piece.
Loop and enclose are not equivalent. Loop tries to find a loop of pieces with at least a site in the middle. Enclose applies a move to all the sites enclosed because of the last move (Here, sites enclosed mean they have no escape to go outside of the pieces enclosing them).
If you do a (can Move (enclose ....)) in the ending condition with your condition in the enclose ludeme that should do what you expect.
Regards,
Eric
Loop and enclose are not equivalent. Loop tries to find a loop of pieces with at least a site in the middle. Enclose applies a move to all the sites enclosed because of the last move (Here, sites enclosed mean they have no escape to go outside of the pieces enclosing them).
If you do a (can Move (enclose ....)) in the ending condition with your condition in the enclose ludeme that should do what you expect.
Regards,
Eric