View Source Islands.Response (Islands Response v0.1.17)
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
@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