Islands Client State v0.1.0 Islands.Client.State View Source
Creates a state
struct for clients of the Game of Islands.
Inspired by the course Elixir for Programmers by Dave Thomas.
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %Islands.Client.State{
game_name: String.t(),
gender: Islands.Player.gender(),
mode: :manual | :auto,
move: [String.codepoint() | non_neg_integer() | String.t()],
pause: 0..10000,
player_id: Islands.PlayerID.t(),
player_name: String.t(),
tally: Islands.Tally.t()
}
t() :: %Islands.Client.State{ game_name: String.t(), gender: Islands.Player.gender(), mode: :manual | :auto, move: [String.codepoint() | non_neg_integer() | String.t()], pause: 0..10000, player_id: Islands.PlayerID.t(), player_name: String.t(), tally: Islands.Tally.t() }
Link to this section Functions
Link to this function
new(game_name, player_id, player_name, gender, mode, pause)
View Source
new(game_name, player_id, player_name, gender, mode, pause)
View Source
new(String.t(), Islands.PlayerID.t(), String.t(), atom(), atom(), pos_integer()) ::
t()
new(String.t(), Islands.PlayerID.t(), String.t(), atom(), atom(), pos_integer()) :: t()