Module logic

Source

Structs§

Game
Represents a game of chess It contains the board, the turn, the halfmove clock, the fullmove number, the en passant square, the castling rights, the start position, the history, a flag to indicate if the king needs to be captured, the previous positions and the game status
Piece
Represents a piece on the board with a color and a piece type

Functions§

piece_movement
Returns the movement function for a given piece type