Ludii Forum
"That is not a valid move" despite the move being legal - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Ludii Player Problems (https://ludii.games/forums/forumdisplay.php?fid=6)
+--- Thread: "That is not a valid move" despite the move being legal (/showthread.php?tid=505)



"That is not a valid move" despite the move being legal - Metatheria - 03-12-2021

When trying to implement the game Quoridor (https://fr.wikipedia.org/wiki/Quoridor), I ran into an issue with the Ludii player. When I try to list the legal moves, it does show that the pawn moves are considered legal, and when I try to drag my pawn, it does highlight the correct squares. However, when I try to drop my pawn on one of those squares, it doesn't allow me to make that move and simply says "That is not a valid move" despite listing it as a legal move. Even weirder, when I try to have two random agents play against each other, they sometimes make pawn moves, so this seems to be an issue with the player's human interface. I've attached my game's description file below, and here are screenshots showing this behavior:

https://media.discordapp.net/attachments/335110906604421122/819951279425847318/unknown.png?width=1224&height=675
https://media.discordapp.net/attachments/335110906604421122/819951493289214023/unknown.png?width=648&height=676
https://media.discordapp.net/attachments/335110906604421122/819951649120059482/unknown.png?width=622&height=675

Is there something wrong with my description? Is this a bug with the Ludii player?

Any help would be very appreciated. Thank you very much.


RE: "That is not a valid move" despite the move being legal - MatthewStephenson - 03-12-2021

Hi,

Could you please attach the .lud game description that you are using, and also describe how to replicate the problem (if its not just every pawn move).

Cheers,
Matthew


RE: "That is not a valid move" despite the move being legal - Metatheria - 03-12-2021

I thought I attached the file, turns out I did not. My bad, here it is. The steps to replicate this are literally just to attempt any pawn move.


RE: "That is not a valid move" despite the move being legal - MatthewStephenson - 03-12-2021

Hi,

Thanks I can replicate the bug.

This was just caused by the fact that there are both cell and edge moves, as I think this is the first game which has both these moves at once.

This should be fixed in the next release.

Cheers,
Matthew