Islands Tally v0.1.2 Islands.Tally View Source
Creates a tally
struct 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
Link to this type
t()
View Source
t()
View Source
t() :: %Islands.Tally{
board: Islands.Board.t(),
board_score: Islands.Score.t(),
game_state: Islands.State.game_state(),
guesses: Islands.Guesses.t(),
guesses_score: Islands.Score.t(),
player1_state: Islands.State.player_state(),
player2_state: Islands.State.player_state(),
request: Islands.Request.t(),
response: Islands.Response.t()
}
t() :: %Islands.Tally{ board: Islands.Board.t(), board_score: Islands.Score.t(), game_state: Islands.State.game_state(), guesses: Islands.Guesses.t(), guesses_score: Islands.Score.t(), player1_state: Islands.State.player_state(), player2_state: Islands.State.player_state(), request: Islands.Request.t(), response: Islands.Response.t() }
Link to this section Functions
Link to this function
new(game, player_id)
View Source
new(game, player_id)
View Source
new(Islands.Game.t(), Islands.PlayerID.t()) :: t() | {:error, atom()}
new(Islands.Game.t(), Islands.PlayerID.t()) :: t() | {:error, atom()}