Ludii Forum
move Hop ignoring restrictions on "from"? - 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: move Hop ignoring restrictions on "from"? (/showthread.php?tid=320)



move Hop ignoring restrictions on "from"? - slimy_asparagus - 12-07-2020

I the attached test code I am puzzled why the 3rd move works in the following sequence:

Code:
1. (1) (Move E6-C6)
2. (2) (Move F13-F11)
3. (1) (Move C6-E6)
I attach the test .lud file.

I think the following (from) clause should prevent this movement.

Code:
            (from
            if:(is In (from)
                    (sites "The Arena")
            )
        )



RE: move Hop ignoring restrictions on "from"? - Eric Piette - 12-07-2020

Hi,

Yes the BooleanFunction in the (from ...) ludeme inside some moves is maybe not always implemented, I will add it.
However you can use the condition on the (from) site in the (between ...) that should work in the same way (the (from) is set before the (between) or the (to) in all the ludemes).

Regards,
Eric


RE: move Hop ignoring restrictions on "from"? - slimy_asparagus - 12-09-2020

(12-07-2020, 02:36 PM)Eric Piette Wrote: Hi,

Yes the BooleanFunction in the (from ...) ludeme inside some moves is maybe not always implemented, I will add it.
However you can use the condition on the (from) site in the (between ...) that should work in the same way (the (from) is set before the (between) or the (to) in all the ludemes).

Regards,
Eric

Eric,

Thanks I got this between fix to work. I look forward to the update. Would you like me to report more gaps like this?


RE: move Hop ignoring restrictions on "from"? - Eric Piette - 12-14-2020

Hi,

Yes, any bugs or missing implementation you can find are really useful for me to look for them and fix/implement them.

Regards,
Eric