Double mobility bonus for nCheck
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 28 Jul 2020 16:45:19 +0000 (18:45 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Tue, 28 Jul 2020 16:45:19 +0000 (18:45 +0200)
3check STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 2999 W: 1487 L: 1347 D: 165
http://www.variantfishtest.org:6543/tests/view/5f1449956e23db104fb88e31

3check LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 3080 W: 1500 L: 1360 D: 220
http://www.variantfishtest.org:6543/tests/view/5f15f4096e23db104fb88e3f

src/evaluate.cpp

index e3b33b5..9be2f55 100644 (file)
@@ -1168,7 +1168,7 @@ namespace {
         for (PieceType pt = PAWN; pt < KING; ++pt)
             score += hand<WHITE>(pt) - hand<BLACK>(pt);
 
-    score += (mobility[WHITE] - mobility[BLACK]) * (1 + pos.captures_to_hand() + pos.must_capture());
+    score += (mobility[WHITE] - mobility[BLACK]) * (1 + pos.captures_to_hand() + pos.must_capture() + pos.check_counting());
 
     score +=  king<   WHITE>() - king<   BLACK>()
             + threats<WHITE>() - threats<BLACK>()