X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=6c46cb4b78e3d393142738a37449e11c7e02f012;hb=7ff965eebfbc17d2b;hp=9af22264b89ff00fbdd247eb33468072d750a962;hpb=e38eb2302d3d3451b387cc9524501d13f5ed63e4;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 9af22264..6c46cb4b 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -412,10 +412,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