// 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
Value safety = (ourPawns & file_bb(ksq)) ? Value(5) : Value(-5);
- if ((shift<Down>(theirPawns) & (FileABB | FileHBB) & BlockRanks) & ksq)
+ if (shift<Down>(theirPawns) & (FileABB | FileHBB) & BlockRanks & ksq)
safety += 374;
File center = std::max(FILE_B, std::min(FILE_G, file_of(ksq)));