Chess v0.1.1 Chess.Figure View Source

Figure module

Link to this section Summary

Functions

Creates a figure

Link to this section Functions

Creates a figure

Options

color - white or black
type - p (Pion), r (Rook), n (Knight), b (Bishop), q (Queen), k (King)

Examples

iex> Chess.Figure.new("white", "p")
%Chess.Figure{color: "white", type: "p"}