Ludii Forum
Can't compile: selecting a site - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13)
+--- Forum: About Ludii (https://ludii.games/forums/forumdisplay.php?fid=14)
+--- Thread: Can't compile: selecting a site (/showthread.php?tid=278)



Can't compile: selecting a site - slimy_asparagus - 11-23-2020

Sorry me again.

I am trying to start working on a different sort of move which targets everything on a given site. Just as first step I tried this:

Code:
(forEach Site (sites Occupied by:Mover) (move Select (site) (then (note "writhe"))))
in the <play> section. It does not compile. I managed to cut it down to a very small test case which I have attached. I have tried reading through the grammar but I cannot see that it breaks anything.

Nicholas


RE: Can't compile: selecting a site - Eric Piette - 11-24-2020

Hi,

Your syntax is incorrect for the (move Select ...)

that should be

(forEach Site (sites Board) (move Select (from (site)) (then (note "writhe"))))

Regards,
Eric


RE: Can't compile: selecting a site - slimy_asparagus - 11-24-2020

Eric,

Thanks very much. Maybe I should have slept on that one. I have managed to integrate it into the code as well.

Nicholas