- int pawn_asymmetry() const { return asymmetry; }
- int open_files() const { return openFiles; }
-
- int semiopen_file(Color c, File f) const {
- return semiopenFiles[c] & (1 << f);
- }
-
- int semiopen_side(Color c, File f, bool leftSide) const {
- return semiopenFiles[c] & (leftSide ? (1 << f) - 1 : ~((1 << (f + 1)) - 1));
- }
-
- int pawns_on_same_color_squares(Color c, Square s) const {
- return pawnsOnSquares[c][!!(DarkSquares & s)];
- }
+ int passed_count() const { return popcount(passedPawns[WHITE] | passedPawns[BLACK]); }
+ int blocked_count() const { return blockedCount; }