Struct alcibiades::stock::StdSearchNode
[−]
[src]
pub struct StdSearchNode<T: Qsearch> { /* fields omitted */ }
Implements the SearchNode
trait.
Methods
impl<T: Qsearch> StdSearchNode<T>
[src]
fn from_fen(fen: &str) -> Result<StdSearchNode<T>, IllegalBoard>
Creates a new instance from Forsyth–Edwards Notation (FEN).
Trait Implementations
impl<T: Qsearch> SearchNode for StdSearchNode<T>
[src]
type Evaluator = <<T as Qsearch>::MoveGenerator as MoveGenerator>::Evaluator
The type of static evaluator that the implementation works with. Read more
type QsearchResult = T::QsearchResult
The type of result object that qsearch
returns.
fn from_history(
fen: &str,
moves: &mut Iterator<Item = &str>
) -> Result<Self, IllegalBoard>
fen: &str,
moves: &mut Iterator<Item = &str>
) -> Result<Self, IllegalBoard>
Instantiates a new chess position from playing history. Read more
fn hash(&self) -> u64
Returns an almost unique hash value for the position. Read more
fn board(&self) -> &Board
Returns a reference to the underlying Board
instance.
fn halfmove_clock(&self) -> u8
Returns the number of half-moves since the last piece capture or pawn advance. Read more
fn fullmove_number(&self) -> u16
Returns the number of the current full move. Read more
fn is_check(&self) -> bool
Returns if the side to move is in check.
fn evaluator(&self) -> &Self::Evaluator
Returns a reference to a static evaluator bound to the current position. Read more
fn evaluate_final(&self) -> Value
Evaluates a final position. Read more
fn evaluate_move(&self, m: Move) -> Value
Returns the likely evaluation change (material) to be lost or gained as a result of a given move. Read more
fn qsearch(
&self,
depth: Depth,
lower_bound: Value,
upper_bound: Value,
static_eval: Value
) -> Self::QsearchResult
&self,
depth: Depth,
lower_bound: Value,
upper_bound: Value,
static_eval: Value
) -> Self::QsearchResult
Performs quiescence search and returns a result. Read more
fn generate_moves<U: AddMove>(&self, moves: &mut U)
Generates all legal moves, possibly including some pseudo-legal moves too. Read more
fn try_move_digest(&self, move_digest: MoveDigest) -> Option<Move>
Verifies if the supplied move digest represents a proper move. Read more
fn null_move(&self) -> Move
Returns a null move. Read more
fn last_move(&self) -> Move
Returns the last played move. Read more
fn do_move(&mut self, m: Move) -> bool
Plays a move on the board. Read more
fn undo_last_move(&mut self)
Takes back the last played move.
fn legal_moves(&self) -> Vec<Move>
Returns all legal moves in the position. Read more
impl<T: Qsearch> Clone for StdSearchNode<T>
[src]
fn clone(&self) -> Self
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