Islands Request v0.1.13 Islands.Request View Source

Defines the request type for the Game of Islands.

Based on the book Functional Web Development by Lance Halvorsen.

Link to this section Summary

Link to this section Types

Specs

t() ::
  {}
  | {:add_player, String.t(), 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()}