Struct alcibiades::stock::StdMoveGenerator [] [src]

pub struct StdMoveGenerator<T: Evaluator> { /* fields omitted */ }

Implements the MoveGenerator trait.

Trait Implementations

impl<T: Clone + Evaluator> Clone for StdMoveGenerator<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Evaluator> MoveGenerator for StdMoveGenerator<T>
[src]

The type of static evaluator that the implementation works with. Read more

Creates a new instance, consuming the supplied Board instance. Read more

Returns the Zobrist hash value for the underlying Board instance. Read more

Returns a reference to the underlying Board instance.

Returns a bitboard with all pieces that attack square.

Returns a bitboard with all enemy pieces that attack the king. Read more

Returns a reference to a static evaluator bound to the current position. Read more

Generates all legal moves, possibly including some pseudo-legal moves too.

The moves are added to moves. All generated moves with pieces other than the king will be legal. Some of the generated king's moves may be illegal because the destination square is under attack.

The initial move score for all generated moves is 0.

Note: A pseudo-legal move is a move that is otherwise legal, except it might leave the king in check.

Generates moves for the quiescence search.

The moves are added to moves. This method always generates a subset of the moves generated by generate_all:

  • If the king is in check, all legal moves are included.

  • Captures and pawn promotions to queen are always included.

  • If generate_checks is true, moves that give check are included too. Discovered checks and checks given by castling are omitted for speed.

Checks if move_digest represents a pseudo-legal move. Read more

Returns a null move. Read more

Plays a move on the board. Read more

Takes back last played move. Read more

Returns the likely evaluation change (material) to be lost or gained as a result of a given move. Read more

impl<T: Evaluator> SetOption for StdMoveGenerator<T>
[src]

Returns a list of supported configuration options (name and description). Read more

Sets a new value for a given configuration option. Read more