Islands Score v0.1.13 Islands.Score View Source
Creates a score
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.Score{ forested_types: [Islands.Island.type()], gender: Islands.Player.gender(), hits: non_neg_integer(), misses: non_neg_integer(), name: String.t() }
Link to this section Functions
Link to this function
board_score(game, player_id)
View Sourceboard_score(Islands.Game.t(), Islands.PlayerID.t()) :: t()
Link to this function
guesses_score(game, player_id)
View Sourceguesses_score(Islands.Game.t(), Islands.PlayerID.t()) :: t()