From b948b037a52dea37d26a7210f75405be7f43bf58 Mon Sep 17 00:00:00 2001 From: Rocky640 Date: Fri, 28 Apr 2017 20:36:24 -0700 Subject: [PATCH] Remove cap in kingDanger initialization Passed STC http://tests.stockfishchess.org/tests/view/58fd53be0ebc59035df33eb5 LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 52048 W: 9397 L: 9329 D: 33322 Passed LTC http://tests.stockfishchess.org/tests/view/58ff9e0a0ebc59035df33f5c LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 35382 W: 4650 L: 4549 D: 26183 Bench: 5872717 Closes #1087 --- src/evaluate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2