11-27-2020, 10:21 AM
In the attached .lud I am told that it is not legal to move a piece from the outer ring onto a site containing a neutral piece, but I cannot find anything wrong in the script. I have found many strange behaviors though:
1:
If I only replace
in (play) with
it works as expected.
2:
If I only remove "count:(size Stack at:(from))" from ("MoveNonNeutralStack"), it works as expected.
3:
If I only remove "stack:true" in ("MoveNonNeutralStack"), then, when I move a piece from the outer ring to a site occupied by a neutral piece, both pieces disappear.
4:
If I remove both "count:(size Stack at:(from))" and "stack:true" from ("MoveNonNeutralStack"), no piece is drawn and I get the following two error-messages:
VC_ERROR: Error detected when attempting to draw COMPONENTS
VC_ERROR: Error detected when attempting to draw POSSIBLEMOVES
1:
If I only replace
Code:
(or
(forEach Piece ("MoveNeutralPiece") Neutral top:true)
(forEach Piece ("MoveNonNeutralStack") Mover top:true)
)
Code:
(forEach Piece ("MoveNonNeutralStack") Mover top:true)
2:
If I only remove "count:(size Stack at:(from))" from ("MoveNonNeutralStack"), it works as expected.
3:
If I only remove "stack:true" in ("MoveNonNeutralStack"), then, when I move a piece from the outer ring to a site occupied by a neutral piece, both pieces disappear.
4:
If I remove both "count:(size Stack at:(from))" and "stack:true" from ("MoveNonNeutralStack"), no piece is drawn and I get the following two error-messages:
VC_ERROR: Error detected when attempting to draw COMPONENTS
VC_ERROR: Error detected when attempting to draw POSSIBLEMOVES