]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Loosened trigger condition for king safety
[stockfish] / src / evaluate.cpp
index 72c23f1996d622d6d02fefc1b3b246ce3dbff2df..d3190bfcbe91a3b3a2185ea58e1cc70dac58dda3 100644 (file)
@@ -640,8 +640,7 @@ Value do_evaluate(const Position& pos) {
     Score score = ei.pi->king_safety<Us>(pos, ksq);
 
     // Main king safety evaluation
-    if (   ei.kingAttackersCount[Them] >= 2
-        && ei.kingAdjacentZoneAttacksCount[Them])
+    if (ei.kingAttackersCount[Them])
     {
         // Find the attacked squares around the king which have no defenders
         // apart from the king itself