X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=7ff7dfc18f343f5f47a67f068a106fba545eba89;hp=18f5adc4084c9f9132d59230f76a24eccf297416;hb=6656ed8904ccf0e20321f9929f2d13fbb7b9223d;hpb=d65f75c1532536f11a2dfbc0263c55e1beb88c2b diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 18f5adc4..7ff7dfc1 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -414,10 +414,10 @@ namespace { // attacked and undefended squares around our king and the quality of // the pawn shelter (current 'score' value). attackUnits = std::min(74, ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them]) - + 8 * ei.kingAdjacentZoneAttacksCount[Them] + + 8 * ei.kingAdjacentZoneAttacksCount[Them] + 25 * popcount(undefended) - + 11 * (ei.pinnedPieces[Us] != 0) - - mg_value(score) * 31 / 256 + + 11 * (ei.pinnedPieces[Us] != 0) + - mg_value(score) / 8 - !pos.count(Them) * 60; // Analyse the enemy's safe queen contact checks. Firstly, find the