low depth se | bench 1398874
This commit is contained in:
1 parent
65b809d115
commit
372ab43e8b
2 files changed
+32
-30
No files matched your search
+31
-30
@@ -617,41 +617,42 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
|
|
||||||
int extension = 0;
|
int extension = 0;
|
||||||
|
|
||||||
if (ply && ply < ctx->rootDepth * 2
|
if (ply && ply < ctx->rootDepth * 2 && currMove == entry.bestMove && ctx->excluded == 0) {
|
||||||
&& depth >= 8
|
if (depth >= 8
|
||||||
&& ttHit
|
&& ttHit
|
||||||
&& currMove == entry.bestMove
|
&& entry.depth >= depth - 3
|
||||||
&& ctx->excluded == 0
|
&& entry.nodeType != AllNode)
|
||||||
&& entry.depth >= depth - 3
|
{
|
||||||
&& entry.nodeType != AllNode)
|
const int sBeta = std::max(-inf + 1, entry.score - depth * 2);
|
||||||
{
|
const int sDepth = (depth - 1) / 2;
|
||||||
const int sBeta = std::max(-inf + 1, entry.score - depth * 2);
|
|
||||||
const int sDepth = (depth - 1) / 2;
|
|
||||||
|
|
||||||
ctx->excluded = currMove;
|
ctx->excluded = currMove;
|
||||||
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();
|
||||||
|
|
||||||
// Singular extension
|
// Singular extension
|
||||||
if (singularScore < sBeta) {
|
if (singularScore < sBeta) {
|
||||||
extension++;
|
extension++;
|
||||||
|
|
||||||
if constexpr (!isPV) {
|
if constexpr (!isPV) {
|
||||||
// Double extension
|
// Double extension
|
||||||
if (singularScore <= sBeta - 1 - doubleExtMargin) {
|
if (singularScore <= sBeta - 1 - doubleExtMargin) {
|
||||||
extension++;
|
extension++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
// Multicut
|
||||||
// Multicut
|
else if (sBeta >= beta) {
|
||||||
else if (sBeta >= beta) {
|
return sBeta;
|
||||||
return sBeta;
|
}
|
||||||
}
|
// Negative extension
|
||||||
// Negative extension
|
else if (entry.score >= beta) {
|
||||||
else if (entry.score >= beta) {
|
extension--;
|
||||||
extension--;
|
} else if (cutnode) {
|
||||||
} else if (cutnode) {
|
extension--;
|
||||||
extension--;
|
}
|
||||||
|
} else if (depth <= 7 && !board.InCheck() && staticEval <= alpha - ldseMargin && entry.nodeType == CutNode) {
|
||||||
|
extension++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
X_INT(seeQueenValue, 900, 750, 1100) \
|
X_INT(seeQueenValue, 900, 750, 1100) \
|
||||||
X_INT(seeQsThreshold, 0, -50, 50) \
|
X_INT(seeQsThreshold, 0, -50, 50) \
|
||||||
X_INT(seeOrderingThreshold, -100, -120, -80) \
|
X_INT(seeOrderingThreshold, -100, -120, -80) \
|
||||||
|
X_INT(ldseMargin, 25, -120, -80) \
|
||||||
X_INT(historyBonusMultiplier, 300, 270, 330) \
|
X_INT(historyBonusMultiplier, 300, 270, 330) \
|
||||||
X_INT(historyBonusSub, 250, 230, 280)
|
X_INT(historyBonusSub, 250, 230, 280)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user