diff --git a/src/search.cpp b/src/search.cpp index e99d5d3fc9f..51c87820d58 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -981,7 +981,7 @@ Value Search::Worker::search( // Decrease reduction if position is or has been on the PV (~7 Elo) if (ss->ttPv) - r -= 1037 + (ttData.value > alpha) * 965 + (ttData.depth >= depth) * 960; + r -= 1037 + (ttData.value > alpha) * 965 + (ttData.depth >= depth) * 960 + 16 * depth; // Step 14. Pruning at shallow depth (~120 Elo). // Depth conditions are important for mate finding. @@ -1408,7 +1408,7 @@ Value Search::Worker::search( else if (priorCapture && prevSq != SQ_NONE) { - // bonus for prior countermoves that caused the fail low + // Bonus for prior countermoves that caused the fail low Piece capturedPiece = pos.captured_piece(); assert(capturedPiece != NO_PIECE); thisThread->captureHistory[pos.piece_on(prevSq)][prevSq][type_of(capturedPiece)]