Grids v0.1.0
Grids.Square
View Source
Documentation for Grids.Square
Returns 6 neighbors for square tile
Returns 6 neighbors for square tile
Examples
iex> Grids.Square.neighbors(%Square{})
[%Square{}, ...]
Creates a square tile
Examples
iex> Grids.Square.new([0, 0])
%Grids.Square{x: 0, y: 0}