Liking cljdoc? Tell your friends :D
Clojure only.

fen.core


fen->mapclj

(fen->map fen)

Convert a FEN string into a board representation.

Board representation is a map with the following keys:

:fen/board - A one-dimensional vector describing the board state, from a1 (index 0) to h8 (index 63) :fen/allow-white-kingside-castle? - A boolean :fen/allow-white-queenside-castle? - A boolean :fen/allow-black-kingside-castle? - A boolean :fen/allow-black-queenside-castle? - A boolean :fen/side-to-move - :white or :black :fen/en-passant-target-square - A coll of squares :fen/halfmove-clock - An integer :fen/fullmove-number - An integer

Convert a FEN string into a board representation.

Board representation is a map with the following keys:

:fen/board - A one-dimensional vector describing the board state,
             from a1 (index 0) to h8 (index 63)
:fen/allow-white-kingside-castle? - A boolean
:fen/allow-white-queenside-castle? - A boolean
:fen/allow-black-kingside-castle? - A boolean
:fen/allow-black-queenside-castle? - A boolean
:fen/side-to-move - :white or :black
:fen/en-passant-target-square - A coll of squares
:fen/halfmove-clock - An integer
:fen/fullmove-number - An integer
raw docstring

map->fenclj

(map->fen fen-map)

Convert a FEN map into a FEN string.

See fen->map for the format of the map.

Convert a FEN map into a FEN string.

See `fen->map` for the format of the map.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close