Unable to iterate over groups of empty sites - Printable Version +- Ludii Forum (https://ludii.games/forums) +-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5) +--- Forum: Grammar Problems (https://ludii.games/forums/forumdisplay.php?fid=24) +--- Thread: Unable to iterate over groups of empty sites (/showthread.php?tid=854) |
Unable to iterate over groups of empty sites - Michael - 03-02-2022 (forEach Group Orthogonal if:(is Empty (to)) ("MyLudeme")) does not perform any action. It doesn't recognize groups of empty sites. Some other group-ludemes do, though, and this one should too. Is it possible to change it so this works? RE: Unable to iterate over groups of empty sites - Eric Piette - 04-01-2022 I had not a lot of time recently to answer to all the different messages on the forum. I will add an issue to myself to look what you said here, and I will answer to you when I do this issue :) RE: Unable to iterate over groups of empty sites - dale walton - 04-06-2022 Possibly related: I have a script where this works: (sizes Group Orthogonal Mover) But substituting this does not work: (sizes Group Orthogonal if:(= (mover) (who at:(to)))) I need to use a more complicated condition than this in the if, so I can't use the former as a work-around. That is I am trying to generate a score by multiplying the top 2 size groups together - but not to include groups which contain branches. My plan is to pre-mark the branched groups with a different state, and that state is also to be excluded in the (sizes Group...) |