Hangman.Impl.Game (hangmanJohnson v0.1.0)

Link to this section Summary

Link to this section Types

Specs

t() :: %Hangman.Impl.Game{
  game_state: Hangman.Type.state(),
  letters: [String.t()],
  turns_left: Integer,
  used: MapSet.t(String.t())
}

Link to this section Functions

Link to this function

make_move(game, guess)

Specs

make_move(t(), String.t()) :: {t(), Hangman.Type.tally()}

Specs

new_game() :: t()

Specs

new_game(String.t()) :: t()