|
| template<Color Side> |
| constexpr auto | pawn_pushes (Bitboard startingPawns, Bitboard emptySquares) noexcept -> Bitboard |
| template<Color Side> |
| constexpr auto | pawn_double_pushes (Bitboard startingPawns, Bitboard occupiedSquares) noexcept -> Bitboard |
| template<Color Side> |
| constexpr auto | pawn_captures (Bitboard startingPawns, Bitboard enemyPieces) noexcept -> Bitboard |
| constexpr auto | knight (Bitboard startingKnights, Bitboard friendlyPieces) noexcept -> Bitboard |
| constexpr auto | bishop (Bitboard startingBishops, Bitboard emptySquares, Bitboard friendlyPieces) noexcept -> Bitboard |
| constexpr auto | rook (Bitboard startingRooks, Bitboard emptySquares, Bitboard friendlyPieces) noexcept -> Bitboard |
| constexpr auto | queen (Bitboard startingQueens, Bitboard emptySquares, Bitboard friendlyPieces) noexcept -> Bitboard |
| constexpr auto | king (Bitboard startingKing, Bitboard friendlyPieces) noexcept -> Bitboard |
This namespace provides functions for generating pseudo-legal moves for each piece type from a given starting position. These functions rely on other board state, such as sets of empty or occupied squares, etc. The generated moves are pseudo-legal, not strictly legal, because they do not consider whether the king would be left in check. The returned move sets do not include the starting square.