From 899a2c033e2e74d3da97c7aefff74fb05a59db0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ralph=20St=C3=B6=C3=9Fer?= Date: Sun, 22 Dec 2013 12:00:09 +0100 Subject: [PATCH] Loosened trigger condition for king safety Reduce eval discontinuity becuase now we kick in king safety evaluation in many more cases. Passed both short TC: LLR: 2.95 (-2.94,2.94) [-1.50,4.50] Total: 8708 W: 1742 L: 1613 D: 5353 And long TC: LLR: 2.95 (-2.94,2.94) [0.00,6.00] Total: 6743 W: 1122 L: 990 D: 4631 bench: 6835416 --- src/evaluate.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 72c23f19..d3190bfc 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -640,8 +640,7 @@ Value do_evaluate(const Position& pos) { Score score = ei.pi->king_safety(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 -- 2.39.2