Tweak material bonus for nCheck
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 21 Mar 2020 17:15:02 +0000 (18:15 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 21 Mar 2020 17:15:02 +0000 (18:15 +0100)
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

src/material.cpp

index b47317c..46de4b1 100644 (file)
@@ -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;