added very simple negext | bench 9494407 #90
+8
-2
@@ -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;
|
const int singularScore = PVS<false, mode>(board, sDepth, sBeta-1, sBeta, ply, ctx, cutnode).score;
|
||||||
ctx->excluded = Move();
|
ctx->excluded = Move();
|
||||||
|
|
||||||
if (singularScore < sBeta)
|
// Singular extension
|
||||||
extension = 1;
|
if (singularScore < sBeta) {
|
||||||
|
extension++;
|
||||||
|
}
|
||||||
|
// Negative extension
|
||||||
|
else if (entry.score >= beta) {
|
||||||
|
extension--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// PVS SEE
|
// PVS SEE
|
||||||
|
|||||||
Reference in new issue
Block a user