Islands Board v0.1.1 Islands.Board View Source

Models a board 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.Board{islands: islands(), misses: Islands.Island.coords()}

Link to this section Functions

Link to this function

all_islands_positioned?(board) View Source
all_islands_positioned?(t()) :: boolean()

Link to this function

position_island(board, island) View Source
position_island(t(), Islands.Island.t()) :: t() | {:error, atom()}