12-24-2020, 11:04 AM
(This post was last modified: 12-24-2020, 11:07 AM by slimy_asparagus.)
I have managed to isolate the bug I mentioned in the "pass Dialog" thread. The attached .lud file works correctly. To see the effect you need to have legal moves showing turned on.
The test moves are that P1 moves from 113 to 147 and then onto 181. Nothing should be removed from the board and you should then be able to move onto 149, which will remove the piece at 165.
However if you uncomment the line "// (place "Leader1" {87})" then suddenly it does not work correctly. The move from 113 to 147 works. But the move from 147 to 181 creates a legal move of touching 164, which should not be legal.
The problem seems to disappear if instead of placing the piece at 113 I place it at 147 and skip the first move.
Also once the bug has been triggered you can no longer restart the game. You have to close Ludii and start again.
The test moves are that P1 moves from 113 to 147 and then onto 181. Nothing should be removed from the board and you should then be able to move onto 149, which will remove the piece at 165.
However if you uncomment the line "// (place "Leader1" {87})" then suddenly it does not work correctly. The move from 113 to 147 works. But the move from 147 to 181 creates a legal move of touching 164, which should not be legal.
The problem seems to disappear if instead of placing the piece at 113 I place it at 147 and skip the first move.
Also once the bug has been triggered you can no longer restart the game. You have to close Ludii and start again.