Struct chess_move_gen::MoveVec [] [src]

pub struct MoveVec { /* fields omitted */ }

MoveCounter implements MoveList and collects moves in a vector. Use iter to access the moves once they have been added.

Methods

impl MoveVec
[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Clone for MoveVec
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for MoveVec
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for MoveVec
[src]

[src]

Formats the value using the given formatter. Read more

impl MoveList for MoveVec
[src]

[src]

Adds moves from the from-square. Targets is a bitboard of valid to-squares. Enemy is a bitboard of enemy pieces (ie pieces that can be captured)

[src]

Adds the castle to the move list

[src]

Adds pawn en-passant capture to list. From and to are the squares the moving pieces moves from and to, respectively

[src]

Adds pawn non-captures to the list. Targets is a bitboard of valid to-squares. Shift is the distance the pawn moved to get to the target square, mod 64. For example, for a white piece moving forward one row this is '8'. For a black piece moving forward one row this is 56 (-8 % 64).

[src]

Adds pawn captures to list. Targets and shift are same as for add_pawn_pushes. Do not use this for en-passant captures (use add_pawn_ep_capture)

Auto Trait Implementations

impl Send for MoveVec

impl Sync for MoveVec