Islands Response v0.1.4 Islands.Response View Source

Defines the response type for the Game of Islands.

Inspired by 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() ::
  {}
  | {:ok, :player2_added}
  | {:error, any()}
  | {:hit | :miss, Islands.Island.type() | :none, :no_win | :win}
  | {:ok, :all_islands_positioned}
  | {:ok, :island_positioned}
  | {:ok, :islands_set}
  | {:ok, :stopping}