Skip to content
Permalink
Browse files

Pawn penalties and time reduction. Bench: 3302183

  • Loading branch information...
SFisGOD committed Mar 7, 2019
1 parent 1aab5b4 commit d2939b4bbe202f9c790887a0f7535c828cc694de
Showing with 5 additions and 5 deletions.
  1. +3 −3 src/pawns.cpp
  2. +2 −2 src/search.cpp
@@ -32,9 +32,9 @@ namespace {
#define S(mg, eg) make_score(mg, eg)

// Pawn penalties
constexpr Score Backward = S( 9, 24);
constexpr Score Doubled = S(11, 56);
constexpr Score Isolated = S( 5, 15);
constexpr Score Backward = S(15, 28);
constexpr Score Doubled = S(14, 59);
constexpr Score Isolated = S( 8, 18);

// Connected pawn bonus by opposed, phalanx, #support and rank
Score Connected[2][2][3][RANK_NB];
@@ -484,8 +484,8 @@ void Thread::search() {
double fallingEval = (306 + 119 * failedLow + 6 * (mainThread->previousScore - bestValue)) / 581.0;
fallingEval = std::max(0.5, std::min(1.5, fallingEval));

// If the bestMove is stable over several iterations, reduce time accordingly
timeReduction = lastBestMoveDepth + 10 * ONE_PLY < completedDepth ? 1.95 : 1.0;
// If the bestMove is stable, reduce time accordingly
timeReduction = std::min(1.8, 1.0 + 0.05 * double(completedDepth - lastBestMoveDepth));

// Use part of the gained time from a previous stable move for the current move
double bestMoveInstability = 1.0 + mainThread->bestMoveChanges;

0 comments on commit d2939b4

Please sign in to comment.
You can’t perform that action at this time.