11-26-2020, 01:57 PM
Hi,
That's a bit hard for me to provide a complete useful answer to the first problem but that's seems to be due to your condition in "MoveZeroStack", that one:
if:(<
(count Steps (from) (centrePoint))
(count Steps (to) (centrePoint))
)
So as far I understand what you try to do, the legal moves seems "correct".
And if you remove the piece in the middle, the condition stop:(< 0 (who at:(to))) is never reached, so the if: is never checked, that's why that seems works in that special case.
For the second question, I just did not understand it. That's always better to have only question by post with an example. So if you can make one to illustrate what you would like to have, maybe I can help more with that.
Regards,
Eric
That's a bit hard for me to provide a complete useful answer to the first problem but that's seems to be due to your condition in "MoveZeroStack", that one:
if:(<
(count Steps (from) (centrePoint))
(count Steps (to) (centrePoint))
)
So as far I understand what you try to do, the legal moves seems "correct".
And if you remove the piece in the middle, the condition stop:(< 0 (who at:(to))) is never reached, so the if: is never checked, that's why that seems works in that special case.
For the second question, I just did not understand it. That's always better to have only question by post with an example. So if you can make one to illustrate what you would like to have, maybe I can help more with that.
Regards,
Eric