Translates chess square coordinates between cartesian, row-column indexes and chess board rank-file formats.
Note the convention of using the 8th rank of the chess board as the first row of the cartesian representation.
Translates chess square coordinates between cartesian, row-column indexes and chess board rank-file formats. Note the convention of using the 8th rank of the chess board as the first row of the cartesian representation.
Function translating a chess file letter character into a cartesian, zero-based column index, e.g. \a -> 0
Function translating a chess file letter character into a cartesian, zero-based column index, e.g. \a -> 0
Function translating a cartesian column index into a chess file letter character, e.g. 0 -> \a
Function translating a cartesian column index into a chess file letter character, e.g. 0 -> \a
(->file-str col-idx)
Function translating a cartesian column index into a chess file letter character as a string, e.g. 0 -> "a".
Function translating a cartesian column index into a chess file letter character as a string, e.g. 0 -> "a".
(->rank row-idx)
Function translating a top-down, zero-based cartesian index into a chess rank integer, e.g. row 7 -> 1.
Function translating a top-down, zero-based cartesian index into a chess rank integer, e.g. row 7 -> 1.
Function translating a top-down, zero-based cartesian index into a chess rank character, e.g. row 7 -> \1.
Function translating a top-down, zero-based cartesian index into a chess rank character, e.g. row 7 -> \1.
(->rank-str row)
Function translating a top-down, zero-based cartesian index into a chess rank character as a string, e.g. row 7 -> "1".
Function translating a top-down, zero-based cartesian index into a chess rank character as a string, e.g. row 7 -> "1".
(->row-col-idxs [file rank])
Converts a rank-file string or char tuple, into a cartiesian [row column] vector of indexes.
Converts a rank-file string or char tuple, into a cartiesian [row column] vector of indexes.
Function translating a (bottom up) chess rank into a top down, zero-based row index, e.g. rank 8 -> 0.
Function translating a (bottom up) chess rank into a top down, zero-based row index, e.g. rank 8 -> 0.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close