Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/aronpetko/integral
Browse files Browse the repository at this point in the history
Bench: 1846877
  • Loading branch information
aronpetko committed Oct 31, 2024
2 parents c67ab94 + 41087d8 commit 3fd1126
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/engine/search/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ TUNABLE(kFutMarginHistDiv, 147, 32, 256, false);
TUNABLE(kSeePruneDepth, 8, 6, 12, true);
TUNABLE(kSeeQuietThresh, -62, -100, -20, false);
TUNABLE(kSeeNoisyThresh, -115, -200, -50, false);
TUNABLE(kSeeNoisyHistDiv, 151, 32, 256, false);
TUNABLE(kSeePruneHistDiv, 151, 32, 256, false);

TUNABLE(kHistPruneDepth, 5, 3, 8, true);
TUNABLE(kHistThreshBase, -481, -1000, 500, false);
Expand Down
9 changes: 4 additions & 5 deletions src/engine/search/search.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "search.h"

#include <algorithm>
#include <thread>
#include <numeric>
#include <thread>

#include "../uci/reporter.h"
#include "constants.h"
Expand Down Expand Up @@ -786,10 +786,9 @@ Score Search::PVSearch(Thread &thread,

// Static Exchange Evaluation (SEE) Pruning: Skip moves that lose too much
// material
const int see_threshold = is_quiet
? kSeeQuietThresh * depth
: kSeeNoisyThresh * depth -
stack->history_score / kSeeNoisyHistDiv;
const int see_threshold =
(is_quiet ? kSeeQuietThresh * depth : kSeeNoisyThresh * depth) -
stack->history_score / kSeePruneHistDiv;
if (depth <= kSeePruneDepth && moves_seen >= 1 &&
!eval::StaticExchange(move, see_threshold, state)) {
continue;
Expand Down

0 comments on commit 3fd1126

Please sign in to comment.