mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
Retire square_is_weak()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+2
-1
@@ -527,7 +527,8 @@ namespace {
|
||||
score -= ThreatenedByPawnPenalty[Piece];
|
||||
|
||||
// Bishop and knight outposts squares
|
||||
if ((Piece == BISHOP || Piece == KNIGHT) && pos.square_is_weak(s, Us))
|
||||
if ( (Piece == BISHOP || Piece == KNIGHT)
|
||||
&& !(pos.pieces(PAWN, Them) & attack_span_mask(Us, s)))
|
||||
score += evaluate_outposts<Piece, Us>(pos, ei, s);
|
||||
|
||||
// Queen or rook on 7th rank
|
||||
|
||||
Reference in New Issue
Block a user