From: Rocky640 Date: Sat, 29 Apr 2017 03:36:24 +0000 (-0700) Subject: Remove cap in kingDanger initialization X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=b948b037a52dea37d26a7210f75405be7f43bf58 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 --- 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))