Increase connected bonus for horde
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 14 Dec 2020 22:46:31 +0000 (23:46 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 14 Dec 2020 22:46:31 +0000 (23:46 +0100)
horde STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 3522 W: 1821 L: 1668 D: 33
http://www.variantfishtest.org:6543/tests/view/5fd79bf96e23db221d9e9531

horde LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1983 W: 1046 L: 916 D: 21
http://www.variantfishtest.org:6543/tests/view/5fd7b7246e23db221d9e9534

src/pawns.cpp

index caa3652..137f2e0 100644 (file)
@@ -71,6 +71,10 @@ namespace {
   constexpr Score KingOnFile[2][2] = {{ S(-19,12), S(-6, 7)  },
                                      {  S(  0, 2), S( 6,-5) }};
 
+
+  // Variant bonuses
+  constexpr int HordeConnected[RANK_NB] = { 0, 0, 0, 50, 50, 85, 50 };
+
   #undef S
   #undef V
 
@@ -155,7 +159,7 @@ namespace {
             int v =  Connected[r] * (2 + bool(phalanx) - bool(opposed)) * (r == RANK_2 && pos.captures_to_hand() ? 3 : 1)
                    + 22 * popcount(support);
             if (r >= RANK_4 && pos.count<PAWN>(Us) > popcount(pos.board_bb()) / 4)
-                v = popcount(support | phalanx) * 50 / (opposed ? 2 : 1);
+                v = popcount(support | phalanx) * HordeConnected[r] / (opposed ? 2 : 1);
 
             score += make_score(v, v * (r - 2) / 4);
         }