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