Ludii Forum
Swap rule not properly functioning in online play - 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: Swap rule not properly functioning in online play (/showthread.php?tid=241)



Swap rule not properly functioning in online play - AlekErickson - 11-08-2020

For some reason, the swap rule is buggy for online play, even though in offline, regular play, I see no problem.
What happens is, sometimes the swap just won't happen, even if a player selected the swap.
This happens with version 1.1.0, i'm not sure about others. 
I noticed this in the game tumbleweed. 
We were going to have a  tournament in Tumbleweed starting soon, so I hope this bug gets fixed.
Sorry that I don't have more information to recreate the problem.


RE: Swap rule not properly functioning in online play - Michael - 11-08-2020

Tumbleweed does not use the built in meta-rule. I wrote a proprietary version, so to speak. I might have done something weird.. Not sure why it should work offline, but not online, though.


RE: Swap rule not properly functioning in online play - MatthewStephenson - 11-09-2020

Hi Alek,

Michael is correct, our current version of Tumbleweed doesn't include the official swap meta-rule, but I can see that an equivalent implementation of it has been included in the game description, so I know the part you are referring too.

Thankfully, we have also been able to replicate the bug.

The problem seems to be caused by the fact that the "swap" part of the move occurs as a consequence of selecting a piece, rather than in other games such as hex where the player explicitly selects a swap move.

We will need to look into this a bit more, but should hopefully be fixed in the next release.

Cheers,
Matthew


RE: Swap rule not properly functioning in online play - MatthewStephenson - 11-16-2020

Hi,

Just a quick update that we think we have fixed this issue with Tumbleweed.
It should work correctly in the next release, but if you see anything wrong please let us know Smile

Cheers,
Matthew