Ludii Forum
Meridians by Kanare Kato - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Suggestions (https://ludii.games/forums/forumdisplay.php?fid=10)
+--- Forum: Submit Your Games (https://ludii.games/forums/forumdisplay.php?fid=23)
+--- Thread: Meridians by Kanare Kato (/showthread.php?tid=609)



Meridians by Kanare Kato - Michael - 06-16-2021

I have implemented Kanare Kato's Meridians from 2021. You have his permission to include it in Ludii. The game is awesome.


RE: Meridians by Kanare Kato - Eric Piette - 06-17-2021

Hi,

Thanks for the submission, I just added it to Ludii, it will be in the next release.

Regards,
Eric


RE: Meridians by Kanare Kato - Michael - 04-29-2022

BGG user hoembla found a bug in the script. I have attached a version that works, but I'm not very happy with the solution.

The problem is that your dead groups are supposed to be removed at the end of your turn, not matter if you have a move available or not. The way I had made it, you only removed dead groups after having made a placement. But then there could be situations where you had no placement available, so you didn't remove your dead groups. I tried a few different things, but the only thing I could get to work was this:
Code:
(play
    (if
        (can Move ("Move" ~))
        ("Move" (then ("Remove")))
        (move Pass (then ("Remove")))
    )
)

I've tried to mock a generic wrapper that would just allow me to move ("Remove") to a logically more appropriate place.

Code:
(play
    (if
        True
        ("Move")
        (then ("Remove"))
    )
)

Code:
(play
    (or
        ("Move")
        ("Move")
        (then ("Remove"))
    )
)

Code:
(play
    (do
        ("Move")
        (then ("Remove"))
    )
)
None of these worked. If you get a sense of what I was trying to do, please let me know if there is a way of doing it.


RE: Meridians by Kanare Kato - Eric Piette - 05-02-2022

Hi,

What you wrote (the top version in your message) sounds correct to me.
Maybe the (then ...) can be a (then ...) of the if to avoid the duplication.

I will replace the .lud by the new one.

Regards,
Eric


RE: Meridians by Kanare Kato - Michael - 05-02-2022

Great! Feel free to refactor to remove the duplication.