Increase king danger without queen for nCheck
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 18 Jan 2019 19:47:51 +0000 (20:47 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 18 Jan 2019 19:47:51 +0000 (20:47 +0100)
3check STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 5565 W: 2630 L: 2456 D: 479
http://35.161.250.236:6543/tests/view/5c3d027e6e23db07348e85b8

3check LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 6185 W: 2922 L: 2739 D: 524
http://35.161.250.236:6543/tests/view/5c3ed2d66e23db07348e85c2

src/evaluate.cpp

index fed73da..0062d98 100644 (file)
@@ -559,7 +559,7 @@ namespace {
                      + 102 * kingAttacksCount[Them] * (1 + pos.captures_to_hand() + !!pos.max_check_count())
                      + 191 * popcount(kingRing[Us] & weak) * (1 + pos.captures_to_hand() + !!pos.max_check_count())
                      + 143 * popcount(pos.blockers_for_king(Us) | unsafeChecks)
-                     - 848 * !(pos.count<QUEEN>(Them) || pos.captures_to_hand())
+                     - 848 * !(pos.count<QUEEN>(Them) || pos.captures_to_hand()) / (1 + !!pos.max_check_count())
                      -   9 * mg_value(score) / 8
                      +  40;