02-14-2021, 10:16 PM
According to the language reference "forEach Group" has an "if:" parameter. I am not clear how to use it. Say if I want to iterate over all Groups of "Yellow1" pieces and apply moves XXX to each, can I do something like this. I have the feeling this is not correct, but I don't know what it would be.
I wonder if the documentation could be improved to clarify this.
Code:
(forEach
Group
Cell
Adjacent
if:(= (id "Yellow" P1) (what at:(sites))
XXX
)