Re-exports§
pub use constants::Color;pub use constants::Piece;pub use hexchess::hexchess::Hexchess;pub use hexchess::san::San;pub use hexchess::utils::index;pub use hexchess::utils::position;
Modules§
Macros§
Functions§
- apply
- Apply a whitespace separated sequence of move to
Hexchessobject. - apply_
move - Apply
Sanobject to aHexchessobject. - apply_
move_ unsafe - Apply
Sanobject to aHexchessobject, regardless of turn or legality. - create_
hexchess - Create a blank
Hexchessobject. - current_
moves - Get current legal moves.
- find_
king - Find the king of a given color.
- get
- Get piece at position
- init_
hexchess - Create
Hexchessobject at the initial position. - is_
check - Test if the board is in check.
- is_
checkmate - Test if the board is in checkmate.
- is_
stalemate - Test if the board is in stalemate.
- moves_
from - Get legal moves from a position index.
- moves_
from_ unsafe - Get all possible moves, including ones that result in self-check.
- parse_
hexchess - Parse
Hexchessobject from Forsyth–Edwards Notation. - parse_
san - Parse
Sanobject from string. - stringify_
hexchess - Convert
Hexchessobject to string using Forsyth-Edwards Notation. - stringify_
san - Convert
Sanobject to string.