Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "fen"

Index

Variables

Const EMPTY_BOARD_FEN

EMPTY_BOARD_FEN: "8/8/8/8/8/8/8/8" = "8/8/8/8/8/8/8/8"

Const EMPTY_EPD

EMPTY_EPD: string = EMPTY_BOARD_FEN + ' w - -'

Const EMPTY_FEN

EMPTY_FEN: string = EMPTY_EPD + ' 0 1'

Const INITIAL_BOARD_FEN

INITIAL_BOARD_FEN: "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR" = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR"

Const INITIAL_EPD

INITIAL_EPD: string = INITIAL_BOARD_FEN + ' w KQkq -'

Const INITIAL_FEN

INITIAL_FEN: string = INITIAL_EPD + ' 0 1'

Functions

makeBoardFen

  • makeBoardFen(board: Board, opts?: FenOpts): string

makeCastlingFen

  • makeCastlingFen(board: Board, unmovedRooks: SquareSet, opts?: FenOpts): string

makeFen

  • makeFen(setup: Setup, opts?: FenOpts): string

makePiece

  • makePiece(piece: Piece, opts?: FenOpts): string

makePockets

makeRemainingChecks

parseBoardFen

parseCastlingFen

parseFen

parsePiece

  • parsePiece(str: string): Piece | undefined

parsePockets

parseRemainingChecks

Generated using TypeDoc