Expand description
Structs§
- Board
- A representation of a chess board that implement FEN notation (
Board::from_str). - Button
- A struct of button for interact with the GUI.
- Chess
- A Standard Chess game.
- Chess
Gui - GUI for the
Chessgame. - Chess
Move - Represent a ChessMove.
- Theme
- Describe the theme of the chess game (GUI).
Enums§
- Align
- Indicate how align the text (GUI).
- Castle
Rights - What castle rights does a particular player have?
- Color
- Represent a color in Chess game.
- Direction
- Describe 8 directions.
- Error
- Error that can happen during the game.
- File
- Describe a file (column) on a chess board.
- Game
State - The Result of the game.
- Piece
- Represent a chess piece.
- Rank
- Describe a rank (row) on a chess board.
- Square
- Represent a square on the chess board.
Constants§
- ALL_
COLORS - Enumerate all
colors. - ALL_
DIAGONAL - Enumerate all
Directionin diagonal. - ALL_
DIRECTION - Enumerate all
Direction. - ALL_
FILES - Enumerate all files.
- ALL_
LINE - Enumerate All
Directionin line (vertical and horizontal). - ALL_
PIECES - An array representing each
Piecetype, in order of ascending value. - ALL_
RANKS - Enumerate all ranks.
- ALL_
SQUARES - Enumerate all
Square. - BOARD_
CELL_ PX_ SIZE - The pixel-size of a Board’s cell.
- BOARD_
PX_ SIZE - The pixel-size of the board only (the board have a square form).
- BOARD_
SIZE - Number of cells in the Board.
- NUM_
COLORS - Numbers of
Colorin chess game. - NUM_
DIAGONAL - Numbers of diagonal.
- NUM_
DIRECTION - Numbers of
Direction. - NUM_
FILES - Numbers of
File. - NUM_
LINES - Numbers of line (vertical and horizontal).
- NUM_
PIECES - Numbers of
Piece. - NUM_
RANKS - Numbers of
Rank. - NUM_
SQUARES - Numbers of
Square. - NUM_
THEMES - Numbers of
Theme. - SCREEN_
PX_ SIZE - The pixel-size of the screen.
- SIDE_
SCREEN_ PX_ SIZE - The pixel-size of the side screen.
- THEMES
- Enumerate all
Theme. - THEME_
CORAL - Coral theme.
- THEME_
DUST - Dust theme.
- THEME_
EMERALD - Emerald theme.
- THEME_
MARINE - Marine theme.
- THEME_
SANDCASTLE - Sandcastle theme.
- THEME_
WHEAT - Wheat theme.
Functions§
- run
- Run the GUI.