diff --git a/src/movepick.h b/src/movepick.h index 666cca362ed..b6e5620e5e3 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -117,8 +117,14 @@ class MovePicker { MovePicker(const MovePicker&) = delete; MovePicker& operator=(const MovePicker&) = delete; MovePicker(const Position&, Move, Value, const CapturePieceToHistory*); - MovePicker(const Position&, Move, Depth, const ButterflyHistory*, const CapturePieceToHistory*, Square); - MovePicker(const Position&, Move, Depth, const ButterflyHistory*, const CapturePieceToHistory*, const PieceToHistory**, Move, Move*); + MovePicker(const Position&, Move, Depth, const ButterflyHistory*, + const CapturePieceToHistory*, + Square); + MovePicker(const Position&, Move, Depth, const ButterflyHistory*, + const CapturePieceToHistory*, + const PieceToHistory**, + Move, + Move*); Move next_move(bool skipQuiets = false); private: diff --git a/src/pawns.cpp b/src/pawns.cpp index ca9c302322b..8b997b6056b 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -118,8 +118,8 @@ namespace { // A pawn is backward when it is behind all pawns of the same color // on the adjacent files and cannot be safely advanced. - backward = !lever && !(ourPawns & pawn_attack_span(Them, s + Up)) - && (stoppers & (leverPush | (s + Up))); + backward = !(ourPawns & pawn_attack_span(Them, s + Up)) + && (stoppers & (leverPush | (s + Up))); // Passed pawns will be properly scored in evaluation because we need // full attack info to evaluate them. Include also not passed pawns @@ -223,7 +223,7 @@ Value Entry::evaluate_shelter(const Position& pos, Square ksq) { Value safety = (ourPawns & file_bb(ksq)) ? Value(5) : Value(-5); - if ((shift(theirPawns) & (FileABB | FileHBB) & BlockRanks) & ksq) + if (shift(theirPawns) & (FileABB | FileHBB) & BlockRanks & ksq) safety += 374; File center = std::max(FILE_B, std::min(FILE_G, file_of(ksq)));