Liking cljdoc? Tell your friends :D

magnus.construct

Functions related to creating and modifying data structures used in Magnus.

Functions related to creating and modifying data structures used in Magnus.
raw docstring

all-squaresclj/s

All possible file rank tuples for a chessboard.

All possible file rank tuples for a chessboard.
sourceraw docstring

clear-squareclj/s

(clear-square state square)

Clear square of any piece currently occupying it.

Clear square of any piece currently occupying it.
sourceraw docstring

get-en-passantclj/s

(get-en-passant state)

Get en-passant square if there is one, else nil.

Get en-passant square if there is one, else nil.
sourceraw docstring

get-piececlj/s

(get-piece state [file rank])

Get piece at square.

Get piece at square.
sourceraw docstring

get-player-in-turnclj/s

(get-player-in-turn state)

Returns the player who's turn it currently is.

Returns the player who's turn it currently is.
sourceraw docstring

new-blank-gameclj/s

Beginning state for a chess game but with no pieces on the board.

Beginning state for a chess game but with no pieces on the board.
sourceraw docstring

new-gameclj/s

Beginning state for a standard chess game.

Beginning state for a standard chess game.
sourceraw docstring

new-piececlj/s

(new-piece color type)

Create a piece of given type and color.

Create a piece of given type and color.
sourceraw docstring

set-movedclj/s

(set-moved state [file rank])

Mark piece at square as having been moved.

Mark piece at square as having been moved.
sourceraw docstring

set-piececlj/s

(set-piece state piece [file rank])

Place piece at square.

Place piece at square.
sourceraw docstring

set-resultclj/s

(set-result state result)

Sets result of a game.

Sets result of a game.
sourceraw docstring

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

× close