Chess 0.0.1
A library written in c
Loading...
Searching...
No Matches
ChessMove Struct Reference

Represents a move in a chess game. More...

#include <move.h>

Data Fields

ChessSquare from
 
ChessSquare to
 
ChessPieceType promotion_type
 
ChessPiece captured_piece
 
ChessCastlingRights previous_castling_rights
 
ChessSquare previous_en_passant_square
 
unsigned int previous_half_move_clock
 

Detailed Description

Represents a move in a chess game.

Field Documentation

◆ captured_piece

ChessPiece ChessMove::captured_piece

The piece captured by this move, or CHESS_PIECE_NONE if not a capture.

◆ from

ChessSquare ChessMove::from

The source square of the move.

◆ previous_castling_rights

ChessCastlingRights ChessMove::previous_castling_rights

The castling rights before the move was made.

◆ previous_en_passant_square

ChessSquare ChessMove::previous_en_passant_square

The en passant square before the move was made.

◆ previous_half_move_clock

unsigned int ChessMove::previous_half_move_clock

The half-move clock value before the move was made.

◆ promotion_type

ChessPieceType ChessMove::promotion_type

The type of piece to promote to, or CHESS_PIECE_TYPE_NONE` if not a promotion.

◆ to

ChessSquare ChessMove::to

The destination square of the move.


The documentation for this struct was generated from the following file: