]> git.sesse.net Git - stockfish/commitdiff
Simplify unstoppable again (#950)
authorStéphane Nicolet <cassio@free.fr>
Mon, 2 Jan 2017 08:33:40 +0000 (09:33 +0100)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Mon, 2 Jan 2017 08:33:40 +0000 (09:33 +0100)
Assign a small bonus for our passed pawns when the opponent has no
pieces left.

STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 51124 W: 9036 L: 8966 D: 33122

LTC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 114560 W: 14604 L: 14604 D: 85352

Bench: 4940355

src/evaluate.cpp

index ed43ce7fe1658a5d42e4c8afdb704256fb6ab6c5..af7a9d34edde97fc2911433ef1f57ca5eee815df 100644 (file)
@@ -672,8 +672,8 @@ namespace {
                 mbonus += rr + r * 2, ebonus += rr + r * 2;
         } // rr != 0
 
                 mbonus += rr + r * 2, ebonus += rr + r * 2;
         } // rr != 0
 
-        // Assign a small bonus when no pieces left (unstoppable)
-        if (!pos.non_pawn_material(Us) && !pos.non_pawn_material(Them))
+        // Assign a small bonus when the opponent has no pieces left
+        if (!pos.non_pawn_material(Them))
             ebonus += 20;
 
         score += make_score(mbonus, ebonus) + PassedFile[file_of(s)];
             ebonus += 20;
 
         score += make_score(mbonus, ebonus) + PassedFile[file_of(s)];