Filtering example - 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: Filtering example (/showthread.php?tid=285) |
Filtering example - slimy_asparagus - 11-25-2020 I don't understand the filtering example in section 10.1 of the Language Reference. Code: (forEach (sites Occupied by:P1) if:(= (what at:(to)) (id "Pawn1"))) Surely this should be Code: (forEach (sites Occupied by:P1) if:(= (what at:(site)) (id "Pawn1"))) RE: Filtering example - Eric Piette - 11-26-2020 Hi, Yes that should be (site). I will modify it. Regards, Eric |