From: Fabian Fichter Date: Sat, 21 Mar 2020 17:15:02 +0000 (+0100) Subject: Tweak material bonus for nCheck X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=b1ab734463fed731e323d9deb503fcf1b7fea15f;p=fairystockfish.git Tweak material bonus for nCheck 3check STC LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 2620 W: 1304 L: 1169 D: 147 http://www.variantfishtest.org:6543/tests/view/5e74ca026e23db46beba4fbf 3check LTC LLR: 2.97 (-2.94,2.94) [0.00,10.00] Total: 1549 W: 775 L: 657 D: 117 http://www.variantfishtest.org:6543/tests/view/5e74f97c6e23db46beba4fc2 3check LTC2 LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 2194 W: 1083 L: 956 D: 155 http://www.variantfishtest.org:6543/tests/view/5e75e7b86e23db46beba4fca --- diff --git a/src/material.cpp b/src/material.cpp index b47317c..46de4b1 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -106,7 +106,7 @@ namespace { int v = 0; for (int pt2 = NO_PIECE_TYPE; pt2 <= pt1; ++pt2) - v += QuadraticOurs[pt1][pt2] * pieceCount[Us][pt2] * (pos.must_capture() && pt1 == KNIGHT && pt2 == PAWN ? 2 : 1) + v += QuadraticOurs[pt1][pt2] * pieceCount[Us][pt2] * (pos.must_capture() && pt1 == KNIGHT && pt2 == PAWN ? 2 : pos.check_counting() && pt1 <= BISHOP ? 0 : 1) + QuadraticTheirs[pt1][pt2] * pieceCount[Them][pt2]; bonus += pieceCount[Us][pt1] * v;