![]() |
Make pieces land only on dark squares after a hop - Printable Version +- Ludii Forum (https://ludii.games/forums) +-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13) +--- Forum: About the Ludii Grammar (https://ludii.games/forums/forumdisplay.php?fid=15) +--- Thread: Make pieces land only on dark squares after a hop (/showthread.php?tid=495) |
Make pieces land only on dark squares after a hop - lvsor_ - 03-08-2021 I'm trying to code Frisian draughts. I'm not able to make pieces land only on the dark squares after a hop. Code: (piece "King" Each This doesn't allow to play any legal moves. If instead of the line Code: (to if: (is In (to) (sites Phase 0))) Code: (to if: (is In (to) (sites Empty))) Code: (to if: (is In (to) (sites Phase 1))) The example game Code: (game "Ortho hop" Thanks in advance. RE: Make pieces land only on dark squares after a hop - Eric Piette - 03-10-2021 Hi, In attachment, the modification to your file to be able to stop your hop move only on square cells. Regards, Eric RE: Make pieces land only on dark squares after a hop - lvsor_ - 03-10-2021 (03-10-2021, 08:13 AM)Eric Piette Wrote: Hi,Thanks, I will try to submit Frisian draughts plus a couple of historical variants (Frysk! and 8x8) briefly |