X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=3e8dcc2635bfe817ea9d68e5259e354c40f08e48;hp=5c9bc86addca4d870f26241fcaea0b99236fd568;hb=69a1a808c8ed02332914afbb503f3d96fa8bb093;hpb=600234f2e23d1244fd38a31ac08a77f00b85a087 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 5c9bc86a..3e8dcc26 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -167,7 +167,6 @@ namespace { const Score Unstoppable = S( 0, 20); const Score Hanging = S(31, 26); const Score PawnAttackThreat = S(20, 20); - const Score PawnSafePush = S( 5, 5); // Penalty for a bishop on a1/h1 (a8/h8 for black) which is trapped by // a friendly pawn on b2/g2 (b7/g7 for black). This can obviously only @@ -527,7 +526,7 @@ namespace { score += more_than_one(b) ? KingOnMany : KingOnOne; } - // Add a small bonus for safe pawn pushes + // Bonus if some pawns can safely push and attack an enemy piece b = pos.pieces(Us, PAWN) & ~TRank7BB; b = shift_bb(b | (shift_bb(b & TRank2BB) & ~pos.pieces())); @@ -535,10 +534,6 @@ namespace { & ~ei.attackedBy[Them][PAWN] & (ei.attackedBy[Us][ALL_PIECES] | ~ei.attackedBy[Them][ALL_PIECES]); - if (b) - score += popcount(b) * PawnSafePush; - - // Add another bonus if the pawn push attacks an enemy piece b = (shift_bb(b) | shift_bb(b)) & pos.pieces(Them) & ~ei.attackedBy[Us][PAWN];