Chess v0.2.0 Chess.Game View Source

Game module

Link to this section Summary

Functions

Creates a game

Makes a play

Link to this section Functions

Creates a game

Examples

iex> Chess.Game.new()
%Chess.Game{squares: [...]}

Makes a play

Parameters

  • game: game object
  • move: move represents like e2-e4

Examples

iex> Chess.Game.play(%Game{}, "e2-e4")