10-12-2020, 11:30 AM
Hi Michael,
I added a (forEach Group ...) ludeme to our dev version, it will be included in the next release.
To iterate each group, you will have to refer to it with the ludeme (sites).
Here an example, adding at each turn a score of one to the mover for each group (connected only orthogonally) greater than 2:
Regards,
Eric Piette
I added a (forEach Group ...) ludeme to our dev version, it will be included in the next release.
To iterate each group, you will have to refer to it with the ludeme (sites).
Here an example, adding at each turn a score of one to the mover for each group (connected only orthogonally) greater than 2:
Code:
(move Add (to (sites Empty))
(then
(forEach Group Orthogonal
(if (< 1 (count Sites in:(sites)))
(addScore Mover 1)
)
)
)
)
Regards,
Eric Piette