85 chess::movegen::legalmoves(moves, board);
95 chess::movegen::legalmoves<chess::movegen::MoveGenType::CAPTURE>(moves, board);
chess::Move Move
Alias for chess::Move.
Definition Types.h:15
chess::PieceType PieceType
Alias for chess::PieceType.
Definition Types.h:20
chess::Color Color
Alias for chess::Color.
Definition Types.h:17
chess::Piece Piece
Alias for chess::Piece.
Definition Types.h:19
chess::Bitboard Bitboard
Alias for chess::Bitboard.
Definition Types.h:21
chess::Rank Rank
Alias for chess::Rank.
Definition Types.h:23
chess::Square Square
Alias for chess::Square.
Definition Types.h:18
chess::Movelist Movelist
Alias for chess::Movelist.
Definition Types.h:16
chess::File File
Alias for chess::File.
Definition Types.h:22
chess::Board Board
Alias for chess::Board.
Definition Types.h:14
Utility wrappers for legal and capture move generation.
void generateCaptures(Movelist &moves, const Board &board)
Generates only legal capture and promotion moves for the given board state.
Definition Types.h:94
void generateLegalMoves(Movelist &moves, const Board &board)
Generates all pseudo-legal and legal moves for the given board state.
Definition Types.h:84
Scores used to sort moves during the move picking phase.
constexpr int16_t HISTORY_MAX
Maximum possible history heuristic score.
Definition Types.h:69
constexpr int16_t HASH_MOVE_SCORE
Highest priority for moves retrieved from the Transposition Table.
Definition Types.h:65
constexpr int16_t KILLER_SCORE_2
Score for the secondary killer move.
Definition Types.h:68
constexpr int16_t KILLER_SCORE_1
Score for the primary killer move.
Definition Types.h:67
constexpr int16_t CAPTURE_BASE
Base score for captures, adjusted by MVV-LVA.
Definition Types.h:66
Global constants related to search and evaluation boundaries.
constexpr int TB_WIN_SCORE
Base score for a tablebase win.
Definition Types.h:37
constexpr int INFINITE
Absolute maximum score.
Definition Types.h:34
constexpr int MATE_IN_MAX
Threshold to detect mating sequences.
Definition Types.h:36
constexpr int DRAW_SCORE
Score for a draw position.
Definition Types.h:39
constexpr int TB_WIN_IN_MAX
Threshold to detect tablebase wins.
Definition Types.h:38
constexpr int16_t INVALID_EVAL
Special value indicating an uncomputed or invalid static evaluation.
Definition Types.h:57
constexpr int CONTEMPT_FACTOR
Make draws slightly negative to encourage winning.
Definition Types.h:40
constexpr uint8_t TT_BETA
Transposition table entry is a lower bound (failed high).
Definition Types.h:45
constexpr int MAX_PLY
Maximum supported plies from root.
Definition Types.h:49
constexpr uint8_t TT_EXACT
Transposition table entry is an exact score.
Definition Types.h:43
constexpr int LMR_MIN_DEPTH
Minimum depth to consider Late Move Reductions (LMR).
Definition Types.h:50
constexpr uint8_t TT_ALPHA
Transposition table entry is an upper bound (failed low).
Definition Types.h:44
constexpr int NULL_MOVE_MIN_DEPTH
Minimum depth to consider Null Move Pruning.
Definition Types.h:51
constexpr int MATE_SCORE
Base score for checkmate.
Definition Types.h:35
constexpr int MAX_EXTENSIONS
Maximum number of search extensions per path.
Definition Types.h:54
constexpr int DEFAULT_DEPTH
Default maximum depth for search.
Definition Types.h:48