Tweak horde chess evaluation
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 24 Oct 2020 16:00:50 +0000 (18:00 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 24 Oct 2020 16:00:50 +0000 (18:00 +0200)
horde STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 5975 W: 3049 L: 2861 D: 65
http://www.variantfishtest.org:6543/tests/view/5f92cb296e23db221d9e936b

horde LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 3220 W: 1671 L: 1523 D: 26
http://www.variantfishtest.org:6543/tests/view/5f935c4e6e23db221d9e9381

src/evaluate.cpp

index b5e6270..8eb949d 100644 (file)
@@ -1154,7 +1154,7 @@ 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(30, 30) * m / (1 + l * r);
+                    score -= make_score(40, 40) * m / (1 + l * r);
                 }
             }
             else if (pos.count<PAWN>(Them) == pos.count<ALL_PIECES>(Them) && pos.pieces(Us, ROOK, QUEEN))
@@ -1170,7 +1170,7 @@ namespace {
                     int pawnsr = std::min(popcount(pos.pieces(Them, PAWN) & shift<EAST>(file_bb(f))), pawns);
                     dist = std::min(dist, pawnsl + pawnsr);
                 }
-                score += make_score(50, 50) * pos.count<PAWN>(Them) / (1 + dist) / (pos.pieces(Us, QUEEN) ? 2 : 4);
+                score += make_score(60, 60) * pos.count<PAWN>(Them) / (1 + dist) / (pos.pieces(Us, QUEEN) ? 2 : 4);
             }
     }