Decrease king danger for drop variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 6 Feb 2019 20:56:33 +0000 (21:56 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 6 Feb 2019 20:56:33 +0000 (21:56 +0100)
crazyhouse STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 3167 W: 1606 L: 1461 D: 100
http://35.161.250.236:6543/tests/view/5c4c3cac6e23db07348e860b

crazyhouse LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 7620 W: 3785 L: 3576 D: 259
http://35.161.250.236:6543/tests/view/5c4f6a756e23db07348e8615

shogi
LLR: 2.96 (-2.94,2.94) [-10.00,5.00]
Total: 828 W: 435 L: 374 D: 19

minishogi
LLR: 2.53 (-2.94,2.94) [-10.00,5.00]
Total: 2000 W: 1018 L: 974 D: 8

src/evaluate.cpp

index cce030a..0a7de34 100644 (file)
@@ -556,7 +556,7 @@ namespace {
         unsafeChecks &= mobilityArea[Them];
 
         kingDanger +=        kingAttackersCount[Them] * kingAttackersWeight[Them]
-                     + 102 * kingAttacksCount[Them] * (1 + pos.captures_to_hand() + 2 * !!pos.max_check_count())
+                     + 102 * kingAttacksCount[Them] * (1 + 2 * !!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()) / (1 + !!pos.max_check_count())