X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=e381d6f8e503d432f3f837fcd40611f0b600a5e8;hb=25296547d0258f8519b7614e4474bbc947eaea04;hp=2f60edda31bb367aa01bb78221d0d5191d971797;hpb=b48439e90643cb6f65f9e34d1421976883c12efc;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 2f60edda..e381d6f8 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -424,7 +424,7 @@ namespace { // number and types of the enemy's attacking pieces, the number of // attacked and undefended squares around our king and the quality of // the pawn shelter (current 'score' value). - kingDanger = std::min(820, ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them]) + kingDanger = ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them] + 103 * ei.kingAdjacentZoneAttacksCount[Them] + 190 * popcount(undefended) + 142 * (popcount(b) + !!pos.pinned_pieces(Us))