06-16-2022, 07:17 PM
The problem is that, in the code below the "from" and "to" of the move is the same (bug?), I can't get the right value of "from".
for (int i = trial.numInitialPlacementMoves(); i < trial.numMoves(); i++)
{
Move move = trial.getMove(i);
system.out.println(move);
}
But when I access the trial.lastMove(), the "from" and "to" value are okay!
for (int i = trial.numInitialPlacementMoves(); i < trial.numMoves(); i++)
{
Move move = trial.getMove(i);
system.out.println(move);
}
But when I access the trial.lastMove(), the "from" and "to" value are okay!