Struct shakmaty::variants::Horde

source ·
pub struct Horde { /* private fields */ }
Expand description

A Horde position.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Plays a move. It is the callers responsibility to ensure the move is legal. Read more
Set up a position. Read more
Collects all legal moves in an existing buffer.
Castling paths and unmoved rooks.
Checks if the game is over due to a special variant end condition. Read more
Tests if a side has insufficient winning material. Read more
Tests special variant winning, losing and drawing conditions.
Swap turns. This is sometimes called “playing a null move”. Read more
Generates legal moves.
Generates a subset of legal moves: All piece moves and drops of type role to the square to, excluding castling moves. Read more
Generates legal castling moves.
Generates en passant moves.
Generates capture moves.
Tests a move for legality.
Tests if a move is irreversible. Read more
Attacks that a king on square would have to deal with.
Tests if the king is in check.
Bitboard of pieces giving check.
Tests for checkmate.
Tests for stalemate.
Tests if the game is over due to checkmate, stalemate, insufficient material or variant end. Read more
The outcome of the game, or None if the game is not over.
Plays a move. Read more
Piece positions on the board.
Pockets in chess variants like Crazyhouse.
Side to move.
Castling rights in terms of corresponding rook positions. Read more
En passant target square on the third or sixth rank.
Remaining checks in chess variants like Three-Check.
Number of half-moves since the last capture or pawn move. Read more
Current move number. Read more
Squares occupied by the side to move. Read more
Squares occupied by a given piece type of the side to move. Read more
Squares occupied by the waiting player. Read more
Squares occupied by a given piece type of the waiting player. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.