Double unsafe check bonus
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 11 May 2020 19:21:13 +0000 (21:21 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 11 May 2020 19:21:13 +0000 (21:21 +0200)
3check STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 3690 W: 1773 L: 1625 D: 292
http://www.variantfishtest.org:6543/tests/view/5eb7c9ec6e23db36d55f2b3f

3check LTC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 3164 W: 1528 L: 1387 D: 249
http://www.variantfishtest.org:6543/tests/view/5eb818e56e23db36d55f2b46

src/evaluate.cpp

index d2209fd..7ff091f 100644 (file)
@@ -564,7 +564,7 @@ namespace {
                  +       kingAttackersCountInHand[Them] * kingAttackersWeight[Them]
                  +       kingAttackersCount[Them] * kingAttackersWeightInHand[Them]
                  + 185 * popcount(kingRing[Us] & (weak | ~pos.board_bb(Us, KING))) * (1 + pos.captures_to_hand() + pos.check_counting())
-                 + 148 * popcount(unsafeChecks)
+                 + 148 * popcount(unsafeChecks) * (1 + pos.check_counting())
                  +  98 * popcount(pos.blockers_for_king(Us))
                  +  69 * kingAttacksCount[Them] * (2 + 8 * pos.check_counting() + pos.captures_to_hand()) / 2
                  +   3 * kingFlankAttack * kingFlankAttack / 8