diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 9eebad9e..4667d515 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -158,7 +158,7 @@ namespace { constexpr Score BishopPawns = S( 3, 7); constexpr Score CloseEnemies = S( 6, 0); constexpr Score CorneredBishop = S( 50, 50); - constexpr Score Hanging = S( 52, 30); + constexpr Score Hanging = S( 57, 32); constexpr Score HinderPassedPawn = S( 8, 0); constexpr Score KingProtector = S( 6, 6); constexpr Score KnightOnQueen = S( 21, 11); @@ -166,7 +166,7 @@ namespace { constexpr Score MinorBehindPawn = S( 16, 0); constexpr Score Overload = S( 13, 6); constexpr Score PawnlessFlank = S( 19, 84); - constexpr Score RookOnPawn = S( 8, 24); + constexpr Score RookOnPawn = S( 10, 30); constexpr Score SliderOnQueen = S( 42, 21); constexpr Score ThreatByKing = S( 23, 76); constexpr Score ThreatByPawnPush = S( 45, 40); diff --git a/src/search.cpp b/src/search.cpp index bd5eb260..0f27564a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -82,7 +82,7 @@ namespace { // History and stats update bonus, based on depth int stat_bonus(Depth depth) { int d = depth / ONE_PLY; - return d > 17 ? 0 : 33 * d * d + 66 * d - 66; + return d > 17 ? 0 : 29 * d * d + 138 * d - 134; } // Skill structure is used to implement strength limit @@ -747,7 +747,7 @@ namespace { // Step 9. Null move search with verification search (~40 Elo) if ( !PvNode && (ss-1)->currentMove != MOVE_NULL - && (ss-1)->statScore < 22500 + && (ss-1)->statScore < 23200 && eval >= beta && ss->staticEval >= beta - 36 * depth / ONE_PLY + 225 && !excludedMove diff --git a/src/types.h b/src/types.h index 175bbbeb..43e9fbff 100644 --- a/src/types.h +++ b/src/types.h @@ -182,9 +182,9 @@ enum Value : int { VALUE_MATE_IN_MAX_PLY = VALUE_MATE - 2 * MAX_PLY, VALUE_MATED_IN_MAX_PLY = -VALUE_MATE + 2 * MAX_PLY, - PawnValueMg = 171, PawnValueEg = 240, + PawnValueMg = 175, PawnValueEg = 240, KnightValueMg = 764, KnightValueEg = 848, - BishopValueMg = 826, BishopValueEg = 891, + BishopValueMg = 815, BishopValueEg = 905, RookValueMg = 1282, RookValueEg = 1373, QueenValueMg = 2500, QueenValueEg = 2670,