-inline Bitboard Position::pieces_of_color_and_type(Color c, PieceType pt)
- const {
- return this->pieces_of_color(c) & this->pieces_of_type(pt);
-}
-
-inline Bitboard Position::pawns() const {
- return this->pieces_of_type(PAWN);
-}
-
-inline Bitboard Position::knights() const {
- return this->pieces_of_type(KNIGHT);
-}
-
-inline Bitboard Position::bishops() const {
- return this->pieces_of_type(BISHOP);
-}
-
-inline Bitboard Position::rooks() const {
- return this->pieces_of_type(ROOK);
-}
-
-inline Bitboard Position::queens() const {
- return this->pieces_of_type(QUEEN);
-}
-
-inline Bitboard Position::kings() const {
- return this->pieces_of_type(KING);
-}
-
-inline Bitboard Position::rooks_and_queens() const {
- return this->rooks() | this->queens();
-}
-
-inline Bitboard Position::bishops_and_queens() const {
- return this->bishops() | this->queens();
-}
-
-inline Bitboard Position::sliders() const {
- return this->bishops() | this->queens() | this->rooks();
-}
-
-inline Bitboard Position::pawns(Color c) const {
- return this->pieces_of_color_and_type(c, PAWN);
-}
-
-inline Bitboard Position::knights(Color c) const {
- return this->pieces_of_color_and_type(c, KNIGHT);
-}
-
-inline Bitboard Position::bishops(Color c) const {
- return this->pieces_of_color_and_type(c, BISHOP);