Tweak horde pawn evaluation
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 14 Jun 2020 07:29:40 +0000 (09:29 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 14 Jun 2020 07:29:40 +0000 (09:29 +0200)
horde STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 812 W: 458 L: 345 D: 9
http://www.variantfishtest.org:6543/tests/view/5ee52c706e23db104fb88b7e

horde LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 960 W: 532 L: 417 D: 11
http://www.variantfishtest.org:6543/tests/view/5ee5569e6e23db104fb88b86

src/pawns.cpp

index e29c5ed..e0f2f81 100644 (file)
@@ -136,7 +136,7 @@ namespace {
             int v =  Connected[r] * (2 + bool(phalanx) - bool(opposed)) * (r == RANK_2 && pos.captures_to_hand() ? 3 : 1)
                    + 21 * popcount(support);
             if (r >= RANK_4 && pos.count<PAWN>(Us) > popcount(pos.board_bb()) / 4)
-                v = std::max(v, popcount(support | phalanx) * 50) / (opposed ? 2 : 1);
+                v = popcount(support | phalanx) * 50 / (opposed ? 2 : 1);
 
             score += make_score(v, v * (r - 2) / 4);
         }