02-19-2021, 04:08 PM
(This post was last modified: 02-19-2021, 04:37 PM by dale walton.)
Refering to the script https://ludii.games/forums/attachment.php?aid=364 in the post 2 up from here:
There seems to be a bug on your side in calculating moves. The last (partial) move in this trial shows a state of 2, but it should be a state of 3. (ie 5 pieces at start of move, less 2 steps = 3: value of steps left to take.
It you back up one move, and click on the piece, the red dots show that the piece really did get an "influence" of 5 to start. and the position really is 2 steps away. and the movements for other moves in the game are calculated correctly.
Please hunt this down for me. It is important that every move in a game is calculated consistently correctly, and I can't see what is different about this particular move.
The relevant define is "MoveFriendly".
Also if you back up one move and choose a different piece using MoveFriendly the move is correctly calculated.
I take that back. It is correctly calculated for a move of one step, but not correct for a longer move. The value becomes one less. - I will also recheck my side, but I don't see how the from - to distance for one step can be correct, but for a greater distance the count is wrong..
To clearly see this backup one step and move the piece side ways 1, 2 or 3 steps, and note that the resulting states are 4, 2, 1.
There seems to be a bug on your side in calculating moves. The last (partial) move in this trial shows a state of 2, but it should be a state of 3. (ie 5 pieces at start of move, less 2 steps = 3: value of steps left to take.
It you back up one move, and click on the piece, the red dots show that the piece really did get an "influence" of 5 to start. and the position really is 2 steps away. and the movements for other moves in the game are calculated correctly.
Please hunt this down for me. It is important that every move in a game is calculated consistently correctly, and I can't see what is different about this particular move.
The relevant define is "MoveFriendly".
Also if you back up one move and choose a different piece using MoveFriendly the move is correctly calculated.
I take that back. It is correctly calculated for a move of one step, but not correct for a longer move. The value becomes one less. - I will also recheck my side, but I don't see how the from - to distance for one step can be correct, but for a greater distance the count is wrong..
To clearly see this backup one step and move the piece side ways 1, 2 or 3 steps, and note that the resulting states are 4, 2, 1.