02-08-2021, 03:34 PM
Thank you a lot for your answer.
Regarding the (move Slide) ludeme, is it normal that I cannot "force" a (to) position with it? The second part of the move in Shobu mimics the first one, and I would expect this code to force the piece to only one location.
However the (to) condition does not seem to influence the move at all, and the piece can slide to all directions.
Am I doing anything wrong? I have attached the updated version of my code.
Thanks in advance,
Fabio
Regarding the (move Slide) ludeme, is it normal that I cannot "force" a (to) position with it? The second part of the move in Shobu mimics the first one, and I would expect this code to force the piece to only one location.
Code:
(move Slide
(from (site))
(to (+ (site) (- (last To) (last From))))
)
Am I doing anything wrong? I have attached the updated version of my code.
Thanks in advance,
Fabio