View Source Islands.Response (Islands Response v0.1.23)
Defines the response type for the Game of Islands.
Inspired by the book Functional Web Development by Lance Halvorsen.
Summary
Types
@type 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