bench 1617873 #150

Merged
rektdie merged 1 commits from history-bonus-fail-low into main 2026-03-14 01:33:17 +01:00
+1 -1
View File
@@ -652,7 +652,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
// Fail high (beta cutoff)
if (score >= beta) {
int bonus = historyBonusMultiplier * depth - historyBonusSub;
int bonus = historyBonusMultiplier * (depth + (!board.InCheck() && staticEval <= alpha)) - historyBonusSub;
if (!currMove.IsCapture()) {
ctx->killerMoves[1][ply] = ctx->killerMoves[0][ply];