diff --git a/src/search.cpp b/src/search.cpp index 65f1a79a5..e698e2c7f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1047,8 +1047,8 @@ moves_loop: // When in check, search starts here } // SEE based pruning for captures and checks - int seeHist = std::clamp(captHist / 31, -137 * depth, 125 * depth); - if (!pos.see_ge(move, -158 * depth - seeHist)) + int margin = std::clamp(158 * depth + captHist / 31, 0, 283 * depth); + if (!pos.see_ge(move, -margin)) { bool mayStalemateTrap = depth > 2 && alpha < 0 && pos.non_pawn_material(us) == PieceValue[movedPiece]