07-19-2022, 03:27 PM
Hi Dale,
thanks for coming up with the game and adding a Ludii version.
While I'm still learning Ludii's language, I'm trying to re-implement some already implemented games (like yours), so I have other people's code to read when I'm finished or give up.
Similar to your efforts, I am having issues implementing ending rule 2), though you seem to have managed in the end. Would you mind giving me a hint on how I could achieve this also (without me looking directly at your .lud)? I've tried a few different ludemes now:
(size Territory) - this only seems to work, if the region a player encloses does not contain any opponent's troopers at all (will be >0 in that case)
(enclose) - this is the opposite of (size Territory) where this will only trigger a win, if the region _only_ contains opponent's troopers?
I've also looked at (is Blocked) and some of the (sites ...) ludemes, though not as thoroughly.
Besides that, was there some kind of formulaic way to generate the Make Muster board instead of taking a square board and removing cells (again, I've not looked at your .lud yet)?
Finally, I noticed that in your rules post there is a small error, namely in the image subtitled "Pink's diagonal move...". The move shown would be illegal, since pink would have to add a trooper in the corner instead. Setting up the game state in your Ludii implementation seems to confirm this. I hope, you're fine with me pointing this out (perhaps you already knew anyways).
thanks for coming up with the game and adding a Ludii version.
While I'm still learning Ludii's language, I'm trying to re-implement some already implemented games (like yours), so I have other people's code to read when I'm finished or give up.
Similar to your efforts, I am having issues implementing ending rule 2), though you seem to have managed in the end. Would you mind giving me a hint on how I could achieve this also (without me looking directly at your .lud)? I've tried a few different ludemes now:
(size Territory) - this only seems to work, if the region a player encloses does not contain any opponent's troopers at all (will be >0 in that case)
(enclose) - this is the opposite of (size Territory) where this will only trigger a win, if the region _only_ contains opponent's troopers?
I've also looked at (is Blocked) and some of the (sites ...) ludemes, though not as thoroughly.
Besides that, was there some kind of formulaic way to generate the Make Muster board instead of taking a square board and removing cells (again, I've not looked at your .lud yet)?
Finally, I noticed that in your rules post there is a small error, namely in the image subtitled "Pink's diagonal move...". The move shown would be illegal, since pink would have to add a trooper in the corner instead. Setting up the game state in your Ludii implementation seems to confirm this. I hope, you're fine with me pointing this out (perhaps you already knew anyways).