View Source Islands.Response (Islands Response v0.1.16)

Defines the response type for the Game of Islands.

Inspired by the book Functional Web Development by Lance Halvorsen.

Link to this section Summary

Types

t()

Response for the Game of Islands

Link to this section Types

Specs

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}

Response for the Game of Islands