(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
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close