Increase king danger for nCheck variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 4 Aug 2019 10:26:47 +0000 (12:26 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 5 Aug 2019 18:42:04 +0000 (20:42 +0200)
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

src/evaluate.cpp

index 60d02a3..83a6e86 100644 (file)
@@ -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])