Islands.Score (Islands Score v0.1.21) 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
Specs
t() :: %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
Specs
board_score(Islands.Game.t(), Islands.PlayerID.t()) :: t()
Specs
guesses_score(Islands.Game.t(), Islands.PlayerID.t()) :: t()