File dependent horde imbalance
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 19 Dec 2020 06:49:40 +0000 (07:49 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 19 Dec 2020 06:49:40 +0000 (07:49 +0100)
horde STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 18445 W: 9313 L: 8946 D: 186
http://www.variantfishtest.org:6543/tests/view/5fd609b96e23db221d9e9520

horde LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 7637 W: 3892 L: 3680 D: 65
http://www.variantfishtest.org:6543/tests/view/5fd735576e23db221d9e952e

src/evaluate.cpp

index d039ec3..1dc3b65 100644 (file)
@@ -1177,7 +1177,8 @@ namespace {
                 for (File f = FILE_A; f <= pos.max_file(); ++f)
                 {
                     l = m; m = r; r = popcount(pos.pieces(Us, PAWN) & shift<EAST>(file_bb(f)));
-                    score -= make_score(70, 70) * m / (1 + l * r);
+                    score -= make_score(80 - 10 * (edge_distance(f, pos.max_file()) % 2),
+                                        80 - 15 * (edge_distance(f, pos.max_file()) % 2)) * m / (1 + l * r);
                 }
             }
             else if (pos.count<PAWN>(Them) == pos.count<ALL_PIECES>(Them) && pos.pieces(Us, ROOK, QUEEN))