Reduce material imbalance for drop variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 28 Dec 2020 11:52:12 +0000 (12:52 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 28 Dec 2020 11:52:12 +0000 (12:52 +0100)
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

src/material.cpp

index 2019929..0160f94 100644 (file)
@@ -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;
   }