From: Fabian Fichter Date: Mon, 28 Dec 2020 11:52:12 +0000 (+0100) Subject: Reduce material imbalance for drop variants X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=649e012549f5f14394885c322834114e5c2a4f1a;p=fairystockfish.git Reduce material imbalance for drop variants crazyhouse STC LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 6889 W: 3445 L: 3246 D: 198 http://www.variantfishtest.org:6543/tests/view/5fe880736e23db221d9e96db crazyhouse LTC LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 10937 W: 5394 L: 5138 D: 405 http://www.variantfishtest.org:6543/tests/view/5fe886dc6e23db221d9e96de minishogi STC LLR: 2.98 (-2.94,2.94) [-10.00,5.00] Total: 2499 W: 1275 L: 1224 D: 0 http://www.variantfishtest.org:6543/tests/view/5fe8d0296e23db221d9e96e0 --- diff --git a/src/material.cpp b/src/material.cpp index 2019929..0160f94 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -123,6 +123,8 @@ namespace { -eg_value(QuadraticOurs[KNIGHT][KNIGHT])) * pieceCount[Us][KNIGHT] * pieceCount[Us][KNIGHT]; else if (pos.check_counting()) bonus -= 2 * QuadraticOurs[PAWN][PAWN] * pieceCount[Us][PAWN] * pieceCount[Us][PAWN]; + else if (pos.captures_to_hand()) + bonus -= bonus / 10; return bonus; }