Liking cljdoc? Tell your friends :D

chessica.coordinates

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.
raw docstring

->col-idxclj

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
sourceraw docstring

->fileclj

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
sourceraw docstring

->file-strclj

(->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".
sourceraw docstring

->rankclj

(->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.
sourceraw docstring

->rank-charclj

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.
sourceraw docstring

->rank-strclj

(->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".
sourceraw docstring

->row-col-idxsclj

(->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.
sourceraw docstring

->row-idxclj

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.
sourceraw docstring

char-zero-asciiclj

source

flipclj

(flip m)
source

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

× close