01-20-2021, 01:33 PM
Eric, Cameron,
Thank you for implementing this. I am finding some issues however.
I have attached a modified version of chess, were the following debugging code is added to a single pawn move.
I get the following output:
5.
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 21}.
If I change the second 5 to "King" I get {4}. To me this shows that using an id in (sites Occupied) rather than a string does not work.
Now if I try using the dialog I get different answers.
(id "King" P1) gives -1.
(sites Occupied by:P1 component:"King") gives [40,41,43,44]
(sites Occupied by:P1 component:5) gives [40,41,43,44]
Thank you for implementing this. I am finding some issues however.
I have attached a modified version of chess, were the following debugging code is added to a single pawn move.
Code:
(do
(note (id "King" P1) to:P2)
next:(note (sites Occupied by:P1 component:5) to:P2)
)
5.
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 21}.
If I change the second 5 to "King" I get {4}. To me this shows that using an id in (sites Occupied) rather than a string does not work.
Now if I try using the dialog I get different answers.
(id "King" P1) gives -1.
(sites Occupied by:P1 component:"King") gives [40,41,43,44]
(sites Occupied by:P1 component:5) gives [40,41,43,44]