From a52bb1f9678da011d6a7692056c74e09d14f089b Mon Sep 17 00:00:00 2001 From: rektdie Date: Mon, 25 Aug 2025 18:48:28 +0200 Subject: [PATCH] added very simple negext | bench 9494407 --- source/search.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index f68a4ac..b8d5b52 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -498,9 +498,15 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC ctx->excluded = currMove; const int singularScore = PVS(board, sDepth, sBeta-1, sBeta, ply, ctx, cutnode).score; ctx->excluded = Move(); - - if (singularScore < sBeta) - extension = 1; + + // Singular extension + if (singularScore < sBeta) { + extension++; + } + // Negative extension + else if (entry.score >= beta) { + extension--; + } } // PVS SEE -- 2.47.3