X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=af7a9d34edde97fc2911433ef1f57ca5eee815df;hp=ed43ce7fe1658a5d42e4c8afdb704256fb6ab6c5;hb=e3a8b8bcff893d078e219637b3d0dcaeaa04beb2;hpb=43f6b33e50c4bea354b963b0e1e47445c8298299 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index ed43ce7f..af7a9d34 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -672,8 +672,8 @@ namespace { 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)];