11-04-2021, 06:54 PM
Thanks for your help!
I tried three different ways of using (sites [roleType] "Base") to get the enemy base region:
(sites Enemy "Base") caused a temporary hang after moving piece and didn't end the move
(sites NonMover "Base") didn't cause a hang but also didn't end the move
(sites Next "Base") only works for non-multi-hop moves—I'm guessing because Mover is also Next—so hopping to player's own base registers as a win for player
Regarding the syntax error for checking which type of piece is moving it is indeed a problem of where I'm trying to call the define.
I was hoping to use it at the (to if: ) section of the multi-hop [line 45]. Is that possible or should I create alternate hop sequences for each piece type?
If I understand correctly the syntax error is because only sites (to) can be tested at that point in the (move ) ludeme and I'm trying to check a piece identity.
I tried three different ways of using (sites [roleType] "Base") to get the enemy base region:
(sites Enemy "Base") caused a temporary hang after moving piece and didn't end the move
(sites NonMover "Base") didn't cause a hang but also didn't end the move
(sites Next "Base") only works for non-multi-hop moves—I'm guessing because Mover is also Next—so hopping to player's own base registers as a win for player
Regarding the syntax error for checking which type of piece is moving it is indeed a problem of where I'm trying to call the define.
I was hoping to use it at the (to if: ) section of the multi-hop [line 45]. Is that possible or should I create alternate hop sequences for each piece type?
If I understand correctly the syntax error is because only sites (to) can be tested at that point in the (move ) ludeme and I'm trying to check a piece identity.