Chess v0.4.3 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 - w or b
type - p (Pion), r (Rook), n (Knight), b (Bishop), q (Queen), k (King)

Examples

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