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