From: mbootsector Date: Thu, 25 Feb 2016 22:59:16 +0000 (+0100) Subject: Passed pawn bonus simplification X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=e1a7d135b2b1c6118ba514fa41c2104245bd1caf Passed pawn bonus simplification STC: (yellow) LLR: -2.96 (-2.94,2.94) [0.00,4.00] Total: 86114 W: 16063 L: 15921 D: 54130 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 14347 W: 2025 L: 1896 D: 10426 Bench: 8576437 Resolves #595 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index e8d38343..c0e94cda 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -168,7 +168,7 @@ namespace { // Passed[mg/eg][Rank] contains midgame and endgame bonuses for passed pawns. // We don't use a Score because we process the two components independently. const Value Passed[][RANK_NB] = { - { V(0), V( 1), V(26), V(68), V(161), V(247) }, + { V(5), V( 5), V(31), V(73), V(166), V(252) }, { V(7), V(14), V(38), V(64), V(137), V(193) } }; @@ -615,10 +615,10 @@ namespace { else if (defendedSquares & blockSq) k += 4; - mbonus += k * rr * 3 / 4, ebonus += k * rr; + mbonus += k * rr, ebonus += k * rr; } else if (pos.pieces(Us) & blockSq) - mbonus += (rr * 3 + r * 2 + 3) * 3 / 4, ebonus += rr + r * 2; + mbonus += rr + r * 2, ebonus += rr + r * 2; } // rr != 0 if (pos.count(Us) < pos.count(Them))