mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 05:07:46 +00:00
Rename OutpostMask[] in AttackSpanMask[]
This is a more standard naming (see chessprogramming wiki) and is more stick to what table is and not what is used for. Code in pawns.cpp is a bit more readable now, at least for me ;-) No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -483,7 +483,7 @@ inline bool Position::pawn_is_passed(Color c, Square s) const {
|
||||
}
|
||||
|
||||
inline bool Position::square_is_weak(Square s, Color c) const {
|
||||
return !(pieces(PAWN, opposite_color(c)) & outpost_mask(c, s));
|
||||
return !(pieces(PAWN, opposite_color(c)) & attack_span_mask(c, s));
|
||||
}
|
||||
|
||||
inline Key Position::get_key() const {
|
||||
|
||||
Reference in New Issue
Block a user