Skip to content

Commit

Permalink
Bench: 3307083
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonnold committed Nov 24, 2024
1 parent 8a6282e commit c0335bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void InitPruningAndReductionTables() {
LMP[1][depth] = 2.1885 + 0.9911 * depth * depth;

STATIC_PRUNE[0][depth] = -15.2703 * depth * depth; // quiet move cutoff
STATIC_PRUNE[1][depth] = -94.0617 * depth; // capture cutoff
STATIC_PRUNE[1][depth] = -94.0617 * depth; // capture cutoff
}
}

Expand Down Expand Up @@ -511,7 +511,7 @@ int Negamax(int alpha, int beta, int depth, int cutnode, ThreadData* thread, PV*
MovePicker mp;
if (!isPV && !inCheck) {
const int opponentHasEasyCapture = !!OpponentsEasyCaptures(board);
const int opponentDeclining = ss->staticEval + (ss - 1)->staticEval > 1;
const int opponentDeclining = ss->staticEval + (ss - 1)->staticEval > 1;

// Reverse Futility Pruning
// i.e. the static eval is so far above beta we prune
Expand Down Expand Up @@ -730,6 +730,9 @@ int Negamax(int alpha, int beta, int depth, int cutnode, ThreadData* thread, PV*
if (ttDepth >= depth)
R--;

if (ttScore != UNKNOWN && ttScore > alpha)
R--;

// prevent dropping into QS, extending, or reducing all extensions
R = Min(newDepth, Max(R, 1));

Expand Down

0 comments on commit c0335bb

Please sign in to comment.