11-20-2020, 05:28 PM
[quote pid='881' dateline='1604308511']
Minor remark about it, you currently does not check if some pieces are still in the hand of the mover. Consequently that's possible to move from an empty sites to any outer sites.
A more accurate description can be:
(move
(from (sites Occupied by:Mover container:(mover)))
(to (sites Outer))
)
[/quote]
Okay this comment finally paid off. I was "playing" against the AI and I found it was doing this so I have added something like this to my code.
Minor remark about it, you currently does not check if some pieces are still in the hand of the mover. Consequently that's possible to move from an empty sites to any outer sites.
A more accurate description can be:
(move
(from (sites Occupied by:Mover container:(mover)))
(to (sites Outer))
)
[/quote]
Okay this comment finally paid off. I was "playing" against the AI and I found it was doing this so I have added something like this to my code.