bugfix: didnt increment halfmoves | bench 902872
This commit is contained in:
1 parent
eb2cc35239
commit
05a94a59d3
1 file changed
+2
@@ -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++;
|
||||||
|
|||||||
Reference in new issue
Block a user