02-01-2022, 01:40 AM
I have tried (count Pieces Mover if:(can Move (move Step))), but I keep getting a grammar error.
I have also tried some tricks with (forEach Piece (do (if (can Move (move Step)) (set State 1))) (then (count Pieces Mover in:(sites State 1)))), but that also throws a grammar error.
Is there a way to do this?
Thank you for your help.
I have also tried some tricks with (forEach Piece (do (if (can Move (move Step)) (set State 1))) (then (count Pieces Mover in:(sites State 1)))), but that also throws a grammar error.
Is there a way to do this?
Thank you for your help.