10-15-2020, 01:34 PM
Is there a ludeme that returns the sites that line on a straight line in between two sites?
My problem is that I want (sites Direction) to "stop" right after it has included a site that meets some criteria (by default it stops right before, so the site meeting the criteria is excluded). I thought that, if I can refer to the sites between the "from:"-value and (site), I can stop as soon as this region contains the relevant piece. I tried to see if (between) could be used for this, but it is not recognized as a region, at least not the way I was using it in the context of (sites Direction) (basically the following):
Another way of achieving what I want would be to allow (sites LineOfSight) to ignore (treat as empty?) sites that meet a certain condition. Or (not as good as a ludeme that returns the sites flanked by two sites, though): An operation that adds the next site in each direction to the result of (sites Direction).
My problem is that I want (sites Direction) to "stop" right after it has included a site that meets some criteria (by default it stops right before, so the site meeting the criteria is excluded). I thought that, if I can refer to the sites between the "from:"-value and (site), I can stop as soon as this region contains the relevant piece. I tried to see if (between) could be used for this, but it is not recognized as a region, at least not the way I was using it in the context of (sites Direction) (basically the following):
Code:
stop:(=
(count Sites
in:(intersection
(sites Occupied by:P1)
(between)
)
)
1
)
Another way of achieving what I want would be to allow (sites LineOfSight) to ignore (treat as empty?) sites that meet a certain condition. Or (not as good as a ludeme that returns the sites flanked by two sites, though): An operation that adds the next site in each direction to the result of (sites Direction).