X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=dd26e46986e9ad7fb57829ddf4ed5f3992f349cc;hb=818e0b2d2b0e2b2eaa8279c8f6684770dc4550e9;hp=6990a71d2bbb306d945cfedebc94c659e1497475;hpb=c2902112e51b50c8ebcf263825597f437fdf56e7;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 6990a71d..dd26e469 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -582,6 +582,10 @@ Value do_evaluate(const Position& pos, Value& margin) { && !more_than_one(BetweenBB[s][pos.king_square(Them)] & pos.pieces())) score += BishopPinBonus; + // Penalty for bishop with same coloured pawns + if (Piece == BISHOP) + score -= make_score(8, 12) * ei.pi->same_colored_pawn_count(s, Us); + // Bishop and knight outposts squares if ( (Piece == BISHOP || Piece == KNIGHT) && !(pos.pieces(Them, PAWN) & attack_span_mask(Us, s)))