Capthist #132

Merged
rektdie merged 2 commits from capthist into main 2025-12-13 23:53:44 +01:00
Showing only changes of commit 5bc4459111 - Show all commits
+6 -2
View File
@@ -768,12 +768,16 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
int movingPiece = board.GetPieceType(seenCaptures[moveIndex].MoveFrom());
int capturedPiece = board.GetPieceType(seenCaptures[moveIndex].MoveTo());
if (seenCaptures[seenCapturesCount].GetFlags() == epCapture) {
if (seenCaptures[moveIndex].GetFlags() == epCapture) {
capturedPiece = Pawn;
}
if (movingPiece == nullPieceType || capturedPiece == nullPieceType) {
std::cout << "asd\n";
}
ctx->capthist.Update(board.sideToMove, movingPiece, capturedPiece,
seenCaptures[seenCapturesCount].MoveTo(), -bonus);
seenCaptures[moveIndex].MoveTo(), -bonus);
}
if (!ctx->excluded)