Chess v0.4.2 Chess.Square View Source
Square module
Link to this section Summary
Functions
Creates 32 figures for new game and puts them to specific squares
Creates figures for new game from existed position
Link to this section Functions
Creates 32 figures for new game and puts them to specific squares
Examples
iex> Chess.Square.prepare_for_new_game()
[
a1: %Chess.Figure{color: "w", type: "r"},
b1: %Chess.Figure{color: "w", type: "n"},
...
]