mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
Use 'adjacent' instead of 'neighboring'
It is more correct and specific. Another naming improvement while reading Critter sources. No functional changes. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+2
-2
@@ -841,7 +841,7 @@ namespace {
|
||||
|
||||
// Increase the bonus if the passed pawn is supported by a friendly pawn
|
||||
// on the same rank and a bit smaller if it's on the previous rank.
|
||||
supportingPawns = pos.pieces(PAWN, Us) & neighboring_files_bb(file_of(s));
|
||||
supportingPawns = pos.pieces(PAWN, Us) & adjacent_files_bb(file_of(s));
|
||||
if (supportingPawns & rank_bb(s))
|
||||
ebonus += Value(r * 20);
|
||||
|
||||
@@ -967,7 +967,7 @@ namespace {
|
||||
pliesToGo = 2 * movesToGo - int(loserSide == pos.side_to_move());
|
||||
|
||||
// Generate list of blocking pawns and supporters
|
||||
supporters = neighboring_files_bb(file_of(s)) & candidates;
|
||||
supporters = adjacent_files_bb(file_of(s)) & candidates;
|
||||
opposed = squares_in_front_of(loserSide, s) & pos.pieces(PAWN, winnerSide);
|
||||
blockers = passed_pawn_mask(loserSide, s) & pos.pieces(PAWN, winnerSide);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user