Struct shakmaty::variants::KingOfTheHill [] [src]

pub struct KingOfTheHill { /* fields omitted */ }

A King of the Hill position.

Trait Implementations

impl Clone for KingOfTheHill
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for KingOfTheHill
[src]

Formats the value using the given formatter.

impl Default for KingOfTheHill
[src]

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

impl Setup for KingOfTheHill
[src]

impl Position for KingOfTheHill
[src]

TRACK_PROMOTED: bool = false

KING_PROMOTIONS: bool = false

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

Validates a Setup and constructs a position.

Generates legal moves.

Tests for insufficient winning material.

Checks if the game is over due to a special variant end condition. Read more

Tests special variant winning, losing and drawing conditions.

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

Bitboard of pieces giving check.

Tests a move for legality.

Tests if a move zeros the halfmove clock.

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.

Validates and plays a move. Accepts only legal moves and safe null moves. Read more