Struct shakmaty::variants::Horde
[−]
[src]
pub struct Horde { /* fields omitted */ }
A Horde position.
Trait Implementations
impl Clone for Horde
[src]
fn clone(&self) -> Horde
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Horde
[src]
impl Default for Horde
[src]
impl Setup for Horde
[src]
fn board(&self) -> &Board
fn pockets(&self) -> Option<&Pockets>
fn turn(&self) -> Color
fn castling_rights(&self) -> Bitboard
fn ep_square(&self) -> Option<Square>
fn remaining_checks(&self) -> Option<&RemainingChecks>
fn halfmove_clock(&self) -> u32
fn fullmoves(&self) -> u32
fn us(&self) -> Bitboard
fn our(&self, role: Role) -> Bitboard
fn them(&self) -> Bitboard
fn their(&self, role: Role) -> Bitboard
impl Position for Horde
[src]
const TRACK_PROMOTED: bool
TRACK_PROMOTED: bool = false
const KING_PROMOTIONS: bool
KING_PROMOTIONS: bool = false
fn play_unchecked(self, m: &Move) -> Horde
Plays a move. It is the callers responsibility to ensure the move is legal. Read more
fn from_setup<S: Setup>(setup: &S) -> Result<Horde, PositionError>
Validates a Setup
and constructs a position.
fn legal_moves(&self, moves: &mut MoveList)
Generates legal moves.
fn is_insufficient_material(&self) -> bool
Tests for insufficient winning material.
fn is_variant_end(&self) -> bool
Checks if the game is over due to a special variant end condition. Read more
fn variant_outcome(&self) -> Option<Outcome>
Tests special variant winning, losing and drawing conditions.
fn king_attackers(&self, square: Square, attacker: Color) -> Bitboard
Attacks that a king on square
would have to deal with.
fn checkers(&self) -> Bitboard
Bitboard of pieces giving check.
fn is_legal(&self, m: &Move) -> bool
Tests a move for legality.
fn is_zeroing(&self, m: &Move) -> bool
Tests if a move zeros the halfmove clock.
fn is_checkmate(&self) -> bool
Tests for checkmate.
fn is_stalemate(&self) -> bool
Tests for stalemate.
fn is_game_over(&self) -> bool
Tests if the game is over due to checkmate, stalemate, insufficient material or variant end. Read more
fn outcome(&self) -> Option<Outcome>
The outcome of the game, or None
if the game is not over.
fn play(self, m: &Move) -> Result<Self, IllegalMove>
Validates and plays a move. Accepts only legal moves and safe null moves. Read more