Skip to content

Commit

Permalink
Introduce Correction History Quad Extensions
Browse files Browse the repository at this point in the history
bench 1574831
  • Loading branch information
Viren6 committed Jan 12, 2025
1 parent c76c179 commit d6dc0ff
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1082,11 +1082,16 @@ Value Search::Worker::search(

if (value < singularBeta)
{
int doubleMargin = 249 * PvNode - 194 * !ttCapture;
int tripleMargin = 94 + 287 * PvNode - 249 * !ttCapture + 99 * ss->ttPv;
int corrValAdj = std::abs(correctionValue) / 262144;
int doubleMargin = 249 * PvNode - 194 * !ttCapture - corrValAdj;
int tripleMargin =
94 + 287 * PvNode - 249 * !ttCapture + 99 * ss->ttPv - corrValAdj;
int quadMargin =
394 + 287 * PvNode - 249 * !ttCapture + 99 * ss->ttPv - corrValAdj;

extension = 1 + (value < singularBeta - doubleMargin)
+ (value < singularBeta - tripleMargin);
+ (value < singularBeta - tripleMargin)
+ (value < singularBeta - quadMargin);

depth += ((!PvNode) && (depth < 14));
}
Expand Down

0 comments on commit d6dc0ff

Please sign in to comment.