]> git.sesse.net Git - stockfish/commitdiff
Retire small bonus in passed pawn evaluation
authortorfranz <tfranzer@gmx.de>
Sat, 11 Feb 2017 00:52:34 +0000 (16:52 -0800)
committerJoona Kiiski <joona@zoox.com>
Sat, 11 Feb 2017 00:52:34 +0000 (16:52 -0800)
STC: http://tests.stockfishchess.org/tests/view/5899824d0ebc59099759f3ee
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 33370 W: 6061 L: 5961 D: 21348

LTC: http://tests.stockfishchess.org/tests/view/5899e3820ebc59099759f415
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 36206 W: 4664 L: 4563 D: 26979

Bench: 6072262

Closes #998

src/evaluate.cpp

index 2c5f130343ecc1f58bbe02a0eaaaad1928faa7eb..554d9ae38695a19653d6daa45c699df3d07f1643 100644 (file)
@@ -667,10 +667,6 @@ namespace {
                 mbonus += rr + r * 2, ebonus += rr + r * 2;
         } // rr != 0
 
-        // Assign a small bonus when the opponent has no pieces left
-        if (!pos.non_pawn_material(Them))
-            ebonus += 20;
-
         // Scale down bonus for candidate passers which need more than one pawn
         // push to become passed.
         if (!pos.pawn_passed(Us, s + pawn_push(Us)))