Hi,
Your suggested approach makes sense:
(remove (forEach (sites Occupied by:P1) if:(is Line 5 through:(site) what:(id "Disc1"))))
but maybe phrased differently, e.g.
(forEach Site (sites Occupied by:Mover) if:(is Line 5 through:(site)) (remove (site)))
assuming that the removals are done at the end of the turn. If not, then the (forEach Site ...) could set a pending value for the relevant sites and a subsequent move could be made to empty all pending sites.
Or maybe a formulation of (forEach Piece ...)?
Eric who wrote that code is back next week, he may be able to advise further.
Regards,
Cameron
Your suggested approach makes sense:
(remove (forEach (sites Occupied by:P1) if:(is Line 5 through:(site) what:(id "Disc1"))))
but maybe phrased differently, e.g.
(forEach Site (sites Occupied by:Mover) if:(is Line 5 through:(site)) (remove (site)))
assuming that the removals are done at the end of the turn. If not, then the (forEach Site ...) could set a pending value for the relevant sites and a subsequent move could be made to empty all pending sites.
Or maybe a formulation of (forEach Piece ...)?
Eric who wrote that code is back next week, he may be able to advise further.
Regards,
Cameron