added very simple negext | bench 9494407

This commit is contained in:
rektdie committed 2025-08-25 18:48:28 +02:00
1 parent 86590918e1
commit a52bb1f967
1 file changed
+8 -2
+8 -2
View File
@@ -499,8 +499,14 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
const int singularScore = PVS<false, mode>(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