Increase king danger for drop variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 1 Sep 2018 09:24:37 +0000 (11:24 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Tue, 4 Sep 2018 18:39:13 +0000 (20:39 +0200)
STC crazyhouse
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 1516 W: 805 L: 682 D: 29
http://35.161.250.236:6543/tests/view/5b8a5c6f6e23db0fbab0dd11

src/evaluate.cpp

index 3e2d138..69a9ca4 100644 (file)
@@ -488,7 +488,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)
+                     - 848 * !(pos.count<QUEEN>(Them) || pos.captures_to_hand())
                      -   9 * mg_value(score) / 8
                      + 100 * (pos.piece_drops() ? pos.count_in_hand(Them, ALL_PIECES) : 0)
                      +  40;