mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 15:37:47 +00:00
Change color argument of square_is_weak()
Pass the color for which the square is to be considered weak, not the opposite. It is more natural and intuitive in this way. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -556,7 +556,7 @@ namespace {
|
||||
ei.value -= Sign[Us] * ThreatedByPawnPenalty[Piece];
|
||||
|
||||
// Bishop and knight outposts squares
|
||||
if ((Piece == BISHOP || Piece == KNIGHT) && pos.square_is_weak(s, Them))
|
||||
if ((Piece == BISHOP || Piece == KNIGHT) && pos.square_is_weak(s, Us))
|
||||
evaluate_outposts<Piece, Us>(pos, ei, s);
|
||||
|
||||
// Special patterns: trapped bishops on a7/h7/a2/h2
|
||||
|
||||
Reference in New Issue
Block a user