View Source Islands.Request (Islands Request v0.1.27)

Defines the request type for the Game of Islands.

Inspired by the book Functional Web Development by Lance Halvorsen.

Link to this section Summary

Types

t()

Request for the Game of Islands

Link to this section Types

Specs

t() ::
  {}
  | {:add_player, Islands.Player.name(), Islands.Player.gender(), pid()}
  | {:position_island, Islands.PlayerID.t(), Islands.Island.type(),
     Islands.Coord.row(), Islands.Coord.col()}
  | {:position_all_islands, Islands.PlayerID.t()}
  | {:set_islands, Islands.PlayerID.t()}
  | {:guess_coord, Islands.PlayerID.t(), Islands.Coord.row(),
     Islands.Coord.col()}
  | {:stop, Islands.PlayerID.t()}
  | {:tally, Islands.PlayerID.t()}

Request for the Game of Islands