last modification

This commit is contained in:
Jérôme BEDIER 2025-05-23 09:07:22 +02:00
parent 03c3c5998b
commit cea28903d7
1 changed files with 1 additions and 3 deletions

View File

@ -76,8 +76,6 @@ public class AutoPlayer {
// Check if move results in checkmate for the opponent
if (copy.isCheckmate(!isWhite)) {
System.out.println("Checkmate! AutoPlayer has won.");
// Optionally, return this move instead of null:
// return move;
return null;
}
@ -114,7 +112,7 @@ public class AutoPlayer {
return bestMoves.get(idx);
}
// Call this after a human move to reset tracking
// Call this after a player move to reset tracking
public void resetLastMovedPiece() {
lastMovedPieceHash = null;
}