Struct littlewing::game::Game[][src]

pub struct Game {
    pub protocol: Protocol,
    pub starting_fen: String,
    pub is_debug: bool,
    pub is_eval_verbose: bool,
    pub is_search_verbose: bool,
    pub is_colored: bool,
    pub show_coordinates: bool,
    pub threads_count: usize,
    pub nodes_count: u64,
    pub clock: Clock,
    pub bitboards: [Bitboard; 14],
    pub board: [Piece; 64],
    pub moves: PieceMoveList,
    pub positions: Positions,
    pub zobrist: Zobrist,
    pub history: Vec<PieceMove>,
    pub tt: TranspositionTable,
}

A Game type to store the state of a chess game

Fields

Methods

impl Game
[src]

Create a new Game

Get the transposition table size in byte

Resize the transposition table at the given size in byte or the next power of two

Clear the current game state

Get a bitboard representation of the given piece in the game

Get the current side color

Trait Implementations

impl Eval for Game
[src]

Evaluate the current position

Evaluate material at the current position for the given side

Static Exchange Evaluation

impl FEN for Game
[src]

Create Game from a given FEN string

Load game state from a given FEN string

Export game state to a FEN string

impl Clone for Game
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Game
[src]

Formats the value using the given formatter. Read more

impl PieceMoveGenerator for Game
[src]

Generate the list of moves from the current game position

Sort the moves list to try good candidates first in search

Get the next move from the moves list (for regular search)

Get the next capture from the moves list (for quiescence search)

Make the given move and update the game state

Undo the given move and update the game state

impl PieceMoveNotation for Game
[src]

Get move from the given SAN string

Get SAN string from the given move

Search the number of legal moves at the given depth

Searh the best move at the given depth range

Searh the best move from the root position at the given depth range

Searh the best score between alpha and beta from a node position at the given depth

Specialized quiescence search

Auto Trait Implementations

impl Send for Game

impl Sync for Game