]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Space bonus and number of blocked pawns
[stockfish] / src / pawns.cpp
index a2063a8f8323cd9ad420e81d8cfe60cd93099ff6..75e6ad7a7dfc9f50b675c9b0eb6c8b4a10f308f4 100644 (file)
@@ -106,7 +106,7 @@ namespace {
         phalanx    = neighbours & rank_bb(s);
         support    = neighbours & rank_bb(s - Up);
 
-        e->blockedCount[Us] += bool(blocked);
+        e->blockedCount[Us] += blocked || more_than_one(leverPush);
 
         // A pawn is backward when it is behind all pawns of the same color on
         // the adjacent files and cannot safely advance.