Expand description
Module containing core chess logic and data structures
Structs§
- Move
- Represents a move in a chess game
- Move
Info - Represents the information of a Move
- PGNTree
- A struct representing a PGN tree It contains the game metadata and a list of lines The current line is the move node that is currently being checked
- Piece
- Represents a piece on the board with a color and a piece type
- Position
- Represents a position on the board. The position is represented by a column and a row.
Enums§
- Castle
Type - Represents the side of the board to castle on
- Color
- Represents the color of a chess Piece
- Draw
Reason - Represents the reason for a draw
- Game
Status - Represents the status of a chess game
- Move
Type - Represents the type of a Move
- Piece
Type - Represents the type of a chess piece
- WinReason
- Represents winning reasons
Traits§
- Variant
- A trait for a chess variant.
- Variant
Builder - Construction helpers for variant types.
Functions§
- piece_
movement - Returns the movement function for a given piece type