04-29-2022, 07:43 PM
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:
I've tried to mock a generic wrapper that would just allow me to move ("Remove") to a logically more appropriate place.
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.
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"))
)
)