08-16-2020, 12:15 PM
(This post was last modified: 08-16-2020, 02:47 PM by dale walton.
Edit Reason: Updated the attachment so you can see what I am working on...
)
Thanks for the explanation. Every bit helps. LOS and Slide are confusing because the (to) values (ie sites that may be chosen) include more that the (to) that is the target of the move. It takes hours to try to figure out what the intent of the documentation is by trial and error.
Unfortunately, neither of those solutions works to remove any sites from the empty sites. Mine at least was removing sites related to one enemy piece.
I suspect that the "(sites To" cannot combine the results from the "(forEach" Piece and is only returning one successful case.
That is why I looked at limiting it with (can, but ran into the same problem.
Why the Empty at:(from) - doesn't (from) contain the opponent's piece? or is the "Empty" excluding a possible piece at (to) and the "at:(from)" doing something else?
As implemented, I have been trying to figure out when using (to (sites LineOfSight Piece)) how to add the condition to check who the piece belongs to.
Also as implemented I am not sure how to separate the cases of inclusion of middle, inclusion of end(s), exclusion of the Empty in the outcomes of the ludeme.
I wish there was more documentation about how and were forEach can be used.
Update: I mistakenly send an totally wrong version.
The updated version only clears the sites LOS from the last placed piece, but I desire from all pieces. Adding forEach makes it not work at all on the first placement, and thereafter seems to be the same as without it. Perhaps it is a bug?
Unfortunately, neither of those solutions works to remove any sites from the empty sites. Mine at least was removing sites related to one enemy piece.
I suspect that the "(sites To" cannot combine the results from the "(forEach" Piece and is only returning one successful case.
That is why I looked at limiting it with (can, but ran into the same problem.
Why the Empty at:(from) - doesn't (from) contain the opponent's piece? or is the "Empty" excluding a possible piece at (to) and the "at:(from)" doing something else?
As implemented, I have been trying to figure out when using (to (sites LineOfSight Piece)) how to add the condition to check who the piece belongs to.
Also as implemented I am not sure how to separate the cases of inclusion of middle, inclusion of end(s), exclusion of the Empty in the outcomes of the ludeme.
I wish there was more documentation about how and were forEach can be used.
Update: I mistakenly send an totally wrong version.
The updated version only clears the sites LOS from the last placed piece, but I desire from all pieces. Adding forEach makes it not work at all on the first placement, and thereafter seems to be the same as without it. Perhaps it is a bug?