X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=4c876820d060e58862c6e132c6010cb2809585e5;hb=87ed9facf16bc9d0af9daf8680801759ce1d8662;hp=7760f70538d411e445324d2df749f6510c084dee;hpb=37698b0396e26a0f1364912dd1feae5dae5892ef;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 7760f705..4c876820 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -454,7 +454,6 @@ namespace { + mg_value(mobility[Them] - mobility[Us]) - 873 * !pos.count(Them) - 100 * bool(attackedBy[Us][KNIGHT] & attackedBy[Us][KING]) - - 35 * bool(attackedBy[Us][BISHOP] & attackedBy[Us][KING]) - 6 * mg_value(score) / 8 - 7; @@ -748,7 +747,7 @@ namespace { { if ( pos.opposite_bishops() && pos.non_pawn_material() == 2 * BishopValueMg) - sf = 16 + 4 * pe->passed_count(); + sf = 22 ; else sf = std::min(sf, 36 + (pos.opposite_bishops() ? 2 : 7) * pos.count(strongSide));