Spsa #177
No files matched your search
+3
-16
@@ -452,13 +452,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
if (!board.InCheck() && !ctx->excluded) {
|
if (!board.InCheck() && !ctx->excluded) {
|
||||||
if (ply) {
|
if (ply) {
|
||||||
// Reverse Futility Pruning
|
// Reverse Futility Pruning
|
||||||
|
int margin = rfpBase + rfpMargin * (depth - improving);
|
||||||
int margin = (
|
|
||||||
rfpBase
|
|
||||||
+ depth * rfpMargin
|
|
||||||
- improving * rfpImprovingMargin
|
|
||||||
) / 128;
|
|
||||||
|
|
||||||
if (!ttpv && ttAdjustedEval - margin >= beta && depth < 7) {
|
if (!ttpv && ttAdjustedEval - margin >= beta && depth < 7) {
|
||||||
return !IsDecisive(ttAdjustedEval) && !IsDecisive(beta)
|
return !IsDecisive(ttAdjustedEval) && !IsDecisive(beta)
|
||||||
? ((ttAdjustedEval + beta) / 2)
|
? ((ttAdjustedEval + beta) / 2)
|
||||||
@@ -476,12 +470,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
Board copy = board;
|
Board copy = board;
|
||||||
copy.MakeMove(Move());
|
copy.MakeMove(Move());
|
||||||
|
|
||||||
const int reduction = (
|
const int reduction = 4 + improving + depth / 3 + entry.bestMove.IsCapture();
|
||||||
nmpBaseReduction
|
|
||||||
+ improving * nmpImprovingReduction
|
|
||||||
+ depth * nmpDepthReduction
|
|
||||||
+ entry.bestMove.IsCapture() * nmpCaptureReduction
|
|
||||||
) / 192;
|
|
||||||
|
|
||||||
ctx->TT->PrefetchEntry(copy.hashKey);
|
ctx->TT->PrefetchEntry(copy.hashKey);
|
||||||
|
|
||||||
@@ -609,9 +598,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
historyScore += ctx->conthist.GetNPly(board, currMove, ctx, ply, 2);
|
historyScore += ctx->conthist.GetNPly(board, currMove, ctx, ply, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
int margin =
|
int margin = fpMargin * (lmrDepth + improving) + historyScore / 32;
|
||||||
(lmrDepth * fpMargin + improving * fpImprovingMargin) / 128
|
|
||||||
+ (historyScore * fpHistoryMargin) / 128;
|
|
||||||
|
|
||||||
if (!isPV && ply && currMove.IsQuiet()
|
if (!isPV && ply && currMove.IsQuiet()
|
||||||
&& lmrDepth <= 7 && staticEval + margin < alpha && notMated && !board.GivesDirectCheck(currMove)) {
|
&& lmrDepth <= 7 && staticEval + margin < alpha && notMated && !board.GivesDirectCheck(currMove)) {
|
||||||
|
|||||||
+3
-10
@@ -23,22 +23,15 @@
|
|||||||
X_INT(lmrTTPVFailLow, 1024, 256, 2048) \
|
X_INT(lmrTTPVFailLow, 1024, 256, 2048) \
|
||||||
X_INT(lmrDeeperBase, 30, 0, 96) \
|
X_INT(lmrDeeperBase, 30, 0, 96) \
|
||||||
X_INT(lmrDeeperScalar, 4, 0, 16) \
|
X_INT(lmrDeeperScalar, 4, 0, 16) \
|
||||||
X_INT(rfpBase, 3200, 1600, 6400) \
|
X_INT(rfpBase, 25, 50, 200) \
|
||||||
X_INT(rfpMargin, 12800, 6400, 25600) \
|
X_INT(rfpMargin, 100, 50, 200) \
|
||||||
X_INT(rfpImprovingMargin, 12800, 0, 25600) \
|
X_INT(fpMargin, 100, 50, 200) \
|
||||||
X_INT(fpMargin, 12800, 6400, 25600) \
|
|
||||||
X_INT(fpImprovingMargin, 12800, 0, 25600) \
|
|
||||||
X_INT(fpHistoryMargin, 4, -64, 64) \
|
|
||||||
X_INT(razoringScalar, 200, 80, 320) \
|
X_INT(razoringScalar, 200, 80, 320) \
|
||||||
X_INT(doubleExtMargin, 30, 8, 64) \
|
X_INT(doubleExtMargin, 30, 8, 64) \
|
||||||
X_INT(seeQuietThreshold, -80, -160, 0) \
|
X_INT(seeQuietThreshold, -80, -160, 0) \
|
||||||
X_INT(seeNoisyThreshold, -30, -120, 40) \
|
X_INT(seeNoisyThreshold, -30, -120, 40) \
|
||||||
X_INT(aspInitialDelta, 30, 8, 96) \
|
X_INT(aspInitialDelta, 30, 8, 96) \
|
||||||
X_INT(nmpBetaMargin, 30, 8, 96) \
|
X_INT(nmpBetaMargin, 30, 8, 96) \
|
||||||
X_INT(nmpBaseReduction, 768, 384, 1152) \
|
|
||||||
X_INT(nmpImprovingReduction, 192, 0, 384) \
|
|
||||||
X_INT(nmpDepthReduction, 64, 32, 128) \
|
|
||||||
X_INT(nmpCaptureReduction, 192, 0, 384) \
|
|
||||||
X_INT(seePawnValue, 100, 80, 140) \
|
X_INT(seePawnValue, 100, 80, 140) \
|
||||||
X_INT(seeKnightValue, 300, 240, 420) \
|
X_INT(seeKnightValue, 300, 240, 420) \
|
||||||
X_INT(seeBishopValue, 350, 250, 450) \
|
X_INT(seeBishopValue, 350, 250, 450) \
|
||||||
|
|||||||
Reference in new issue
Block a user