Fifty move #31

Merged
rektdie merged 3 commits from fifty_move into main 2025-03-26 00:40:19 +01:00
Showing only changes of commit 05a94a59d3 - Show all commits
+2
View File
@@ -353,6 +353,8 @@ bool Board::MakeMove(Move move) {
if (attackerColor == Black) fullMoves++; if (attackerColor == Black) fullMoves++;
if (attackerPiece == Pawn || move.IsCapture()) { if (attackerPiece == Pawn || move.IsCapture()) {
halfMoves = 0; halfMoves = 0;
} else {
halfMoves++;
} }
positionIndex++; positionIndex++;