X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=3095838820632331b5f5ac805dd5ed867af83cf9;hp=dd86f35ae112777165005860adf57ec51148f8e2;hb=057d710fc2f23b63b574122f2609e03f58d2e494;hpb=01f2466f6eba4d4b28f0cd6ac7c2fd38d95b9401 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index dd86f35a..30958388 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -419,11 +419,11 @@ namespace { // attacked and undefended squares around our king and the quality of // the pawn shelter (current 'score' value). kingDanger = std::min(807, ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them]) - + 101 * ei.kingAdjacentZoneAttacksCount[Them] - + 235 * popcount(undefended) - + 134 * (popcount(b) + !!ei.pinnedPieces[Us]) - - 717 * !pos.count(Them) - - 7 * mg_value(score) / 5 - 5; + + 101 * ei.kingAdjacentZoneAttacksCount[Them] + + 235 * popcount(undefended) + + 134 * (popcount(b) + !!ei.pinnedPieces[Us]) + - 717 * !pos.count(Them) + - 7 * mg_value(score) / 5 - 5; // Analyse the enemy's safe queen contact checks. Firstly, find the // undefended squares around the king reachable by the enemy queen...