Struct shakmaty::variants::Giveaway[][src]

pub struct Giveaway { /* fields omitted */ }

A Giveaway position. Giveaway is also (somewhat ambiguously) known as Antichess.

Trait Implementations

impl Clone for Giveaway
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Giveaway
[src]

Formats the value using the given formatter. Read more

impl Default for Giveaway
[src]

Returns the "default value" for a type. Read more

impl Setup for Giveaway
[src]

impl Position for Giveaway
[src]

Plays a move. It is the callers responsibility to ensure the move is legal. Read more

Set up a position. Read more

Castling paths and unmoved rooks.

Generates en passant moves.

Generates capture moves.

Collects all legal moves in an existing buffer.

Attacks that a king on square would have to deal with.

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.

Tests a move for legality.

Tests if a move is irreversible. Read more

Tests if the king is in check.

Bitboard of pieces giving check.

Tests for checkmate.

Tests for stalemate.

Tests if both sides have insufficient winning material. Read more

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

Auto Trait Implementations

impl Send for Giveaway

impl Sync for Giveaway