Hangman.Game.new
You're seeing just the function
new
, go back to Hangman.Game module for more information.
Link to this function
new(game_name, word \\ Dictionary.random_word())
Specs
Returns a new Hangman Game with a word
to be guessed.
Examples
iex> alias Hangman.Game
iex> Game.new("Mr. Smith").game_state
:initializing