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

Link to this function

board_score(game, player_id)

View Source

Specs

board_score(Islands.Game.t(), Islands.PlayerID.t()) :: t()
Link to this function

guesses_score(game, player_id)

View Source

Specs

guesses_score(Islands.Game.t(), Islands.PlayerID.t()) :: t()