Islands Coord v0.1.1 Islands.Coord View Source

Creates a coord struct for the Game of Islands.

Based on the book Functional Web Development by Lance Halvorsen.

Link to this section Summary

Link to this section Types

Link to this type

t() View Source
t() :: %Islands.Coord{col: col(), row: row()}

Link to this section Functions

Link to this function

new(row, col) View Source
new(row(), col()) :: {:ok, t()} | {:error, atom()}