View Source Hangman.Text.Client.State (Hangman Game v0.1.74)

Creates a state struct for the Hangman Game.

The state struct contains the fields game_name, tally and guess representing the characteristics of a state in the Hangman Game.

Summary

Types

t()

A state struct for the Hangman Game

Functions

Creates a state struct from a game_name.

Types

@type t() :: %Hangman.Text.Client.State{
  game_name: Hangman.Game.name(),
  guess: Hangman.Game.letter() | nil,
  tally: Hangman.Game.tally()
}

A state struct for the Hangman Game

Functions

@spec new(Hangman.Game.name()) :: t()

Creates a state struct from a game_name.