-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);
-}
-
-inline Bitboard Position::rooks(Color c) const {
- return this->pieces_of_color_and_type(c, ROOK);
-}
-
-inline Bitboard Position::queens(Color c) const {
- return this->pieces_of_color_and_type(c, QUEEN);
-}
-
-inline Bitboard Position::kings(Color c) const {
- return this->pieces_of_color_and_type(c, KING);
-}
-
-inline Bitboard Position::rooks_and_queens(Color c) const {
- return this->rooks_and_queens() & this->pieces_of_color(c);
-}
-
-inline Bitboard Position::bishops_and_queens(Color c) const {
- return this->bishops_and_queens() & this->pieces_of_color(c);
-}
-
-inline Bitboard Position::sliders_of_color(Color c) const {
- return this->sliders() & this->pieces_of_color(c);
-}
-
-inline int Position::piece_count(Color c, PieceType pt) const {
- return pieceCount[c][pt];
-}
-
-inline int Position::pawn_count(Color c) const {
- return this->piece_count(c, PAWN);
-}
-
-inline int Position::knight_count(Color c) const {
- return this->piece_count(c, KNIGHT);
-}
-
-inline int Position::bishop_count(Color c) const {
- return this->piece_count(c, BISHOP);
-}
-
-inline int Position::rook_count(Color c) const {
- return this->piece_count(c, ROOK);
-}
-
-inline int Position::queen_count(Color c) const {
- return this->piece_count(c, QUEEN);
-}
-
-inline Square Position::piece_list(Color c, PieceType pt, int index) const {
- return pieceList[c][pt][index];
-}
-
-inline Square Position::pawn_list(Color c, int index) const {
- return this->piece_list(c, PAWN, index);