- int weak_unopposed(Color c) const { return weakUnopposed[c]; }
- int passed_count() const { return passedCount; }
-
- int semiopen_file(Color c, File f) const {
- return semiopenFiles[c] & (1 << f);
- }
-
- int pawns_on_same_color_squares(Color c, Square s) const {
- return pawnsOnSquares[c][bool(DarkSquares & s)];
- }
+ int passed_count() const { return popcount(passedPawns[WHITE] | passedPawns[BLACK]); }
+ int blocked_count() const { return blockedCount; }