]> git.sesse.net Git - stockfish/commitdiff
less bonus for blocked connected pawn
authorStefan Geschwentner <stgeschwentner@gmail.com>
Mon, 13 Apr 2020 21:01:38 +0000 (23:01 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Tue, 14 Apr 2020 06:01:53 +0000 (08:01 +0200)
Use less bonus for blocked connected pawns so closed positions are less worth.

STC:
LLR: 2.96 (-2.94,2.94) {-0.50,1.50}
Total: 60004 W: 11904 L: 11619 D: 36481
Ptnml(0-2): 1066, 7083, 13535, 7136, 1182
https://tests.stockfishchess.org/tests/view/5e941a8063d105aebbab23e3

LTC:
LLR: 2.95 (-2.94,2.94) {0.25,1.75}
Total: 36606 W: 4831 L: 4556 D: 27219
Ptnml(0-2): 252, 3353, 10872, 3520, 306
https://tests.stockfishchess.org/tests/view/5e9444b963d105aebbab2427

closes https://github.com/official-stockfish/Stockfish/pull/2629

Bench: 4961260

src/pawns.cpp

index 7c4eda0f0b07dc256e48db24327f2be4c634d707..a2063a8f8323cd9ad420e81d8cfe60cd93099ff6 100644 (file)
@@ -138,7 +138,7 @@ namespace {
         // Score this pawn
         if (support | phalanx)
         {
         // Score this pawn
         if (support | phalanx)
         {
-            int v =  Connected[r] * (2 + bool(phalanx) - bool(opposed))
+            int v =  Connected[r] * (4 + 2 * bool(phalanx) - 2 * bool(opposed) - bool(blocked)) / 2
                    + 21 * popcount(support);
 
             score += make_score(v, v * (r - 2) / 4);
                    + 21 * popcount(support);
 
             score += make_score(v, v * (r - 2) / 4);