From: Fabian Fichter Date: Sun, 4 Aug 2019 10:26:47 +0000 (+0200) Subject: Increase king danger for nCheck variants X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=53f4755b95fc6c2813de5639aaf02da2e8604bf7;p=fairystockfish.git Increase king danger for nCheck variants 3check STC LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 2063 W: 1037 L: 910 D: 116 http://35.161.250.236:6543/tests/view/5d46b32b6e23db34f4206d48 3check LTC LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 1029 W: 537 L: 426 D: 66 http://35.161.250.236:6543/tests/view/5d46d0bb6e23db34f4206d4b --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 60d02a3..83a6e86 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -543,7 +543,7 @@ namespace { int kingFlankAttacks = popcount(b1) + popcount(b2); kingDanger += kingAttackersCount[Them] * kingAttackersWeight[Them] - + 69 * kingAttacksCount[Them] * (1 + 2 * !!pos.max_check_count()) + + 69 * kingAttacksCount[Them] * (1 + 4 * !!pos.max_check_count()) + 185 * popcount(kingRing[Us] & weak) * (1 + pos.captures_to_hand() + !!pos.max_check_count()) - 100 * bool(attackedBy[Us][KNIGHT] & attackedBy[Us][KING]) - 35 * bool(attackedBy[Us][BISHOP] & attackedBy[Us][KING])