]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Try more aggressive version
[stockfish] / src / evaluate.cpp
index 6990a71d2bbb306d945cfedebc94c659e1497475..dd26e46986e9ad7fb57829ddf4ed5f3992f349cc 100644 (file)
@@ -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)))