Liking cljdoc? Tell your friends :D

chessica.board2

Represents and implements a chess board position as a two-dimensional, row-column vector

Represents and implements a chess board position
as a two-dimensional, row-column vector
raw docstring

empty-boardclj

source

update-boardclj

(update-board board pieces rc-idxs & {e-on-cfs? :throw-on-conflict? :as opts})

Puts pieces in squares whose coordinates are in their respective locations in rc-idxs. Each piece is a char (piecesis a string or or sequential of chars, without spaces) and each coordinates is a row-column index vector. If :throw-on-conflict? is true then an exception is thrown with a data map reporting conflicting pieces for the same square, if applicable.

Puts pieces in squares whose coordinates are in their respective
locations in rc-idxs. Each piece is a char (`pieces`is a string or
or sequential of chars, without spaces) and each coordinates is a 
row-column index vector.
If :throw-on-conflict? is true then an exception is thrown with a 
data map reporting conflicting pieces for the same
square, if applicable.
sourceraw docstring

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

× close