- Bitboard candidate_pawns(Color c) const { return candidatePawns[c]; }
- int pawns_on_same_color_squares(Color c, Square s) const { return pawnsOnSquares[c][!!(DarkSquares & s)]; }
- int semiopen(Color c, File f) const { return semiopenFiles[c] & (1 << int(f)); }
- int semiopen_on_side(Color c, File f, bool left) const {
-
- return semiopenFiles[c] & (left ? ((1 << int(f)) - 1) : ~((1 << int(f+1)) - 1));
- }
+ Bitboard pawn_attacks_span(Color c) const { return pawnAttacksSpan[c]; }
+ int weak_unopposed(Color c) const { return weakUnopposed[c]; }
+ int passed_count() const { return popcount(passedPawns[WHITE] | passedPawns[BLACK]); }