Islands Tally v0.1.5 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 Sourcet() :: %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 Sourcenew(Islands.Game.t(), Islands.PlayerID.t()) :: t() | {:error, atom()}