fen

Types

pub type CastlingStatus {
  CastlingStatus(
    white_kingside: Bool,
    white_queenside: Bool,
    black_kingside: Bool,
    black_queenside: Bool,
  )
}

Constructors

  • CastlingStatus(
      white_kingside: Bool,
      white_queenside: Bool,
      black_kingside: Bool,
      black_queenside: Bool,
    )
pub type Fen {
  Fen(
    board: BoardBB,
    turn: Color,
    castling: CastlingStatus,
    en_passant: Option(Position),
    halfmove: HalfMove,
    fullmove: FullMove,
  )
}

Constructors

  • Fen(
      board: BoardBB,
      turn: Color,
      castling: CastlingStatus,
      en_passant: Option(Position),
      halfmove: HalfMove,
      fullmove: FullMove,
    )
pub type FullMove =
  Int
pub type HalfMove =
  Int

Functions

pub fn from_string(fen: String) -> Fen
pub fn parse_board(board_string: String) -> BoardBB
Search Document