Skip to main content

Module position

Module position 

Source
Expand description

§Chess positions

Any Position is determined by:

  • the location of pieces on the Board
  • parameters for the next turn (these are not visible from the board itself)
    • the Player whose turn it is
    • the possible castle Sides
    • the possible en-passant Square if any
  • counter for “reversible” turns since last “non-reversible” (aka pawn moves + captures) Move, aka “halfmoves”
  • counter of full rounds, aka “fullmoves”

Compared to shakmaty our position is a concrete struct

Re-exports§

pub use Kind::Normal;
pub use Special::Castle;
pub use Special::Promote;

Modules§

algebraic

Structs§

Castles
Move
Move that a player can make.
Parts
The raw parts from which a position can be constructed.
Position
Chess position, including the board, turn, rights, and counters.
Sides

Enums§

EnPassant
A square that can hold an en-passant target.
Error
Kind
What kind of move is it?
Side
A side of the board to castle toward.
Special

Type Aliases§

EnPassantTable
Result
SideTable