X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=95d5fb4cfeb5af4da52552430224b3622470d3cc;hp=17a96670911dc414b351ca7f2197dada32a510a7;hb=69ec09bd4b5bdf61f3f49f12d88224e1d656020c;hpb=25296547d0258f8519b7614e4474bbc947eaea04 diff --git a/src/pawns.cpp b/src/pawns.cpp index 17a96670..95d5fb4c 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -163,6 +163,13 @@ namespace { && popcount(phalanx) >= popcount(leverPush)) e->passedPawns[Us] |= s; + else if ( stoppers == SquareBB[s + Up] + && relative_rank(Us, s) >= RANK_5 + && (b = (shift(supported) & ~theirPawns))) + while(b) + if(!more_than_one(theirPawns & PawnAttacks[Us][pop_lsb(&b)])) + e->passedPawns[Us] |= s; + // Score this pawn if (!neighbours) score -= Isolated[opposed];