[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Check out Chess with Different Armies, our featured variant for July, 2024.
Check out Chess with Different Armies, our featured variant for July, 2024.
Since the first two conditions have the same effect, this might also work:
(define push-n (n (while on-board? (if (or empty? (in-zone? board-edge-n)) add else (cascade n)))))
And let's try a general push routine without the zone:
(define push ($1 (while on-board? (if (or empty? (not-on-board? $1)) add else (cascade $1)))))