Grids v0.1.0 Grids.Square View Source

Documentation for Grids.Square

Link to this section Summary

Functions

Returns 6 neighbors for square tile

Creates a square tile

Link to this section Functions

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}