08-15-2021, 04:54 PM
(This post was last modified: 08-15-2021, 05:13 PM by dale walton.)
i.e.
(forEach Group if:(= (next) (who at:(to)))
(move Add (to (sites Around (sites)))
)
Re : your question. I don't know the answer, that is why I am asking.
I don't see the answer in the documentation which doesn't say what a group is or how it is selected. (is a group simply a region defined by the boolean? If so,there must be a default if not if clause is specified which is not given in the documentation, but can be overridden... can the groups in forEach Group have overlapping elements?)
I had assumed that groups were based on mover's pieces.
My guess was if it was more general, it would need something like
if:(all (sites) if:(is Next (who at:(site))))
I will give yours a try first. BTW why is the iterator "to"? Where is this use of "to" documented? Should my above attempt be if:(all (sites) if:(is Next (who at:(to)))) ?
Sorry for so many questions...
-------------------------------------------------------\
OK I see a similar thread called "forEach Group if:"
and am studying it.
Note my purpose is to achieve a turn with many placements, so the above was to simple an approach...
(forEach Group if:(= (next) (who at:(to)))
(move Add (to (sites Around (sites)))
)
Re : your question. I don't know the answer, that is why I am asking.
I don't see the answer in the documentation which doesn't say what a group is or how it is selected. (is a group simply a region defined by the boolean? If so,there must be a default if not if clause is specified which is not given in the documentation, but can be overridden... can the groups in forEach Group have overlapping elements?)
I had assumed that groups were based on mover's pieces.
My guess was if it was more general, it would need something like
if:(all (sites) if:(is Next (who at:(site))))
I will give yours a try first. BTW why is the iterator "to"? Where is this use of "to" documented? Should my above attempt be if:(all (sites) if:(is Next (who at:(to)))) ?
Sorry for so many questions...
-------------------------------------------------------\
OK I see a similar thread called "forEach Group if:"
and am studying it.
Note my purpose is to achieve a turn with many placements, so the above was to simple an approach...