From: Fabian Fichter Date: Tue, 28 Jul 2020 16:45:19 +0000 (+0200) Subject: Double mobility bonus for nCheck X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=fce07304f52520215589d203c5e3e4f3425d784e;p=fairystockfish.git Double mobility bonus for nCheck 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 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index e3b33b5..9be2f55 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -1168,7 +1168,7 @@ namespace { for (PieceType pt = PAWN; pt < KING; ++pt) score += hand(pt) - hand(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() - threats()