mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Give a small penalty for bishop for each pawn on the same colored square
This commit is contained in:
@@ -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(4, 4) * 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)))
|
||||
|
||||
Reference in New Issue
Block a user