|
| constexpr auto | castle_kingside (const Color color) noexcept -> Move |
| constexpr auto | castle_queenside (const Color color) noexcept -> Move |
| auto | compute_attacks (const Position &position) -> AttackInfo |
| template<typename Callback> |
| auto | compute_attacks (const Position &position, Callback &&onPieceAttacks) -> AttackInfo |
| template<Color Side> |
| constexpr auto | num_squares_attacked (const Pieces &pieces, Bitboard targetSquares, Bitboard enemyPieces, bool includeKing=true) noexcept -> size_t |
| constexpr auto | operator<=> (const Move &first, const Move &second) noexcept -> std::strong_ordering |
| template<bool IsRoot> |
| auto | perft (const size_t depth, const game::Position &startingPosition) -> PerftResult |
| template<bool IsRoot = true> |
| auto | perft (size_t depth, const game::Position &startingPosition) -> PerftResult |
| constexpr auto | promotion (const File file, const Color color, const PieceType promotedType) noexcept -> Move |
| template<Color Side> |
| constexpr auto | squares_attacked (const Pieces &pieces, Bitboard targetSquares, Bitboard enemyPieces) noexcept -> bool |
| template<size_t N> |
| using | NMoveList = beman::inplace_vector::inplace_vector<Move, N> |
| using | MoveList = NMoveList<MAX_MOVES> |
| constexpr auto | MAX_MOVES = 256uz |
| template<bool CapturesOnly = false> |
| void | generate (const Position &position, std::output_iterator< Move > auto outputIt) |
| template<bool CapturesOnly = false> |
| auto | generate (const Position &position) -> MoveList |
| template<bool CapturesOnly = false> |
| void | generate_for (const Position &position, PieceType piece, std::output_iterator< Move > auto outputIt) |
| template<bool CapturesOnly = false> |
| auto | generate_for (const Position &position, PieceType piece) -> MoveList |
| auto | any_legal_moves (const Position &position) -> bool |
| auto | get_potentially_legal_en_passant_target_squares (const Position &position) |
This namespace contains classes for modeling moves.