]> git.sesse.net Git - stockfish/commitdiff
Increase weight for supported pawns
authorStéphane Nicolet <cassio@free.fr>
Tue, 24 Sep 2019 10:41:45 +0000 (12:41 +0200)
committerStéphane Nicolet <cassio@free.fr>
Tue, 24 Sep 2019 10:54:02 +0000 (12:54 +0200)
This patch changes the weight for counting supports of pawns
from 17 to 21. Hopefully Stockfish will accept to play a bit
more of closed or semi-closed positions.

STC:
LLR: 2.95 (-2.94,2.94) [0.00,4.00]
Total: 13822 W: 3158 L: 2939 D: 7725
http://tests.stockfishchess.org/tests/view/5d89c3a10ebc595091802379

LTC:
LLR: 2.96 (-2.94,2.94) [0.00,4.00]
Total: 63066 W: 10590 L: 10236 D: 42240
http://tests.stockfishchess.org/tests/view/5d89ca7f0ebc595091802680

Future work: try to tweak the evaluation to better understand
the French structures.

Closes https://github.com/official-stockfish/Stockfish/pull/2326

Bench: 3618154

src/pawns.cpp

index ca4156dac522d76eefee8919bad2d9ab5ecf2724..50eb3aa32c3871649cf242833b657ceec73ee497 100644 (file)
@@ -131,7 +131,7 @@ namespace {
         if (support | phalanx)
         {
             int v =  Connected[r] * (2 + bool(phalanx) - opposed)
         if (support | phalanx)
         {
             int v =  Connected[r] * (2 + bool(phalanx) - opposed)
-                   + 17 * popcount(support);
+                   + 21 * popcount(support);
 
             score += make_score(v, v * (r - 2) / 4);
         }
 
             score += make_score(v, v * (r - 2) / 4);
         }