Skip to content

Commit

Permalink
Simplify Away Quadruple Extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-shawn authored and PikaCat-OuO committed May 18, 2024
1 parent 9ae2831 commit 30b05a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,12 +948,10 @@ Value Search::Worker::search(
{
int doubleMargin = 251 * PvNode - 241 * !ttCapture;
int tripleMargin =
135 + 234 * PvNode - 248 * !ttCapture + 124 * (ss->ttPv || !ttCapture);
int quadMargin = 447 + 354 * PvNode - 300 * !ttCapture + 206 * ss->ttPv;
121 + 238 * PvNode - 259 * !ttCapture + 117 * (ss->ttPv || !ttCapture);

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

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

0 comments on commit 30b05a0

Please sign in to comment.