Islands Engine v0.1.41 Islands.Engine.Island View Source

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %Islands.Engine.Island{coords: coords(), hits: coords(), type: type()}
Link to this type type() View Source
type() :: :atoll | :dot | :l_shape | :s_shape | :square

Link to this section Functions

Link to this function forested?(island) View Source
forested?(t()) :: boolean()
Link to this function guess(island, guess) View Source
guess(t(), Islands.Engine.Coord.t()) :: {:hit, t()} | :miss
Link to this function new(type, origin) View Source
new(type(), Islands.Engine.Coord.t()) :: {:ok, t()} | {:error, atom()}
Link to this function overlaps?(island, new_island) View Source
overlaps?(t(), t()) :: boolean()