io-chess
UCI chess engine
Loading...
Searching...
No Matches
MoveGen Namespace Reference

Utility wrappers for legal and capture move generation. More...

Functions

void generateLegalMoves (Movelist &moves, const Board &board)
 Generates all pseudo-legal and legal moves for the given board state.
void generateCaptures (Movelist &moves, const Board &board)
 Generates only legal capture and promotion moves for the given board state.

Detailed Description

Utility wrappers for legal and capture move generation.

Function Documentation

◆ generateCaptures()

void MoveGen::generateCaptures ( Movelist & moves,
const Board & board )
inline

Generates only legal capture and promotion moves for the given board state.

Parameters
movesList to append the generated capture moves to.
boardCurrent board state.
Here is the caller graph for this function:

◆ generateLegalMoves()

void MoveGen::generateLegalMoves ( Movelist & moves,
const Board & board )
inline

Generates all pseudo-legal and legal moves for the given board state.

Parameters
movesList to append the generated moves to.
boardCurrent board state.
Here is the caller graph for this function: