Struct chess_move_gen::Position [] [src]

pub struct Position { /* fields omitted */ }

Position encodes all positional information and non-positional game state

Methods

impl Position
[src]

[src]

Returns piece captured and square if any

[src]

impl Position
[src]

[src]

[src]

Construct a new position from a FEN string

[src]

[src]

[src]

Get position non-positional state

[src]

Get position position

[src]

Get piece at square

[src]

[src]

Get bitboard of pieces for a particular side

[src]

Get bitboard of pieces for a particular piece

[src]

Get bitboard of sliding pieces for a particular side

[src]

Get bitboard of all occupied squares

[src]

Get bitboard of all empty squares

Trait Implementations

impl Clone for Position
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Position
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Position
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Position

impl Sync for Position