08-17-2020, 03:11 AM
Off topic, but could you also help with the correct way to do this:
(define "SetStates"
(forEach
Site
(sites To (forEach Piece Next ))
(set
State
at:(site)
(count
Pieces Next
in:(sites Around (site))
)
)
)
)
in the documentation (site) is only used for "bySite", so how does one iterate sites using (forEach Site ?
(define "SetStates"
(forEach
Site
(sites To (forEach Piece Next ))
(set
State
at:(site)
(count
Pieces Next
in:(sites Around (site))
)
)
)
)
in the documentation (site) is only used for "bySite", so how does one iterate sites using (forEach Site ?