Chess v0.3.3 Chess.Square View Source

Square module

Link to this section Summary

Functions

Creates 32 figures for new game and puts them to specific squares

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: "white", type: "r"},
  b1: %Chess.Figure{color: "white", type: "n"},
  ...
]