Skip to content

Commit

Permalink
Do IIR before probcut (liamt19#59)
Browse files Browse the repository at this point in the history
bench: 4766328
  • Loading branch information
liamt19 authored Aug 15, 2024
1 parent 04a3638 commit 5bf5cda
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Logic/Search/Searches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,16 @@ public static int Negamax<NodeType>(Position pos, SearchStackEntry* ss, int alph
}


if (ttMove.Equals(Move.Null)
&& (cutNode || isPV)
&& depth >= ExtraCutNodeReductionMinDepth)
{
// We expected this node to be a bad one, so give it an extra depth reduction
// if the depth is at or above a threshold (currently 4).
depth--;
}


// Try ProbCut for:
// non-PV nodes
// that aren't a response to a previous singular extension search
Expand Down Expand Up @@ -321,16 +331,6 @@ public static int Negamax<NodeType>(Position pos, SearchStackEntry* ss, int alph
}


if (ttMove.Equals(Move.Null)
&& (cutNode || isPV)
&& depth >= ExtraCutNodeReductionMinDepth)
{
// We expected this node to be a bad one, so give it an extra depth reduction
// if the depth is at or above a threshold (currently 4).
depth--;
}


MovesLoop:

int legalMoves = 0; // Number of legal moves that have been encountered so far in the loop.
Expand Down

0 comments on commit 5bf5cda

Please sign in to comment.