11-30-2020, 04:15 PM
Hi,
That's really hard to provide an useful answer to your questions because the description in the file is complex and do not speak to me to understand what you try to do.
And in reading your point 1: "When a single piece is placed, (in the corner or anywhere else ) placement of a hex should not be available on any line of sight from it."
That's not what is described in the .lud, something more complex is done with an equality about pieces owned by the Mover and the next player.
However, just as a try in keeping only the
(sites LineOfSight at:(site) Orthogonal)
in
(intersection
(sites LineOfSight at:(site) Orthogonal)
(sites Distance from:(site) ("Dist2Nearest"))
)
That seems to work (at least I am not able to play a piece in the line of light of the piece already placed in the corner)
So I would guess something you do in the define "Dist2Nearest" is not what you expect in it. But I have no idea what you try to do with that so I am not able to help.
The LOS does not seem to have any problem.
Regards,
Eric
That's really hard to provide an useful answer to your questions because the description in the file is complex and do not speak to me to understand what you try to do.
And in reading your point 1: "When a single piece is placed, (in the corner or anywhere else ) placement of a hex should not be available on any line of sight from it."
That's not what is described in the .lud, something more complex is done with an equality about pieces owned by the Mover and the next player.
However, just as a try in keeping only the
(sites LineOfSight at:(site) Orthogonal)
in
(intersection
(sites LineOfSight at:(site) Orthogonal)
(sites Distance from:(site) ("Dist2Nearest"))
)
That seems to work (at least I am not able to play a piece in the line of light of the piece already placed in the corner)
So I would guess something you do in the define "Dist2Nearest" is not what you expect in it. But I have no idea what you try to do with that so I am not able to help.
The LOS does not seem to have any problem.
Regards,
Eric