Hangman.Engine.end_game
You're seeing just the function
end_game
, go back to Hangman.Engine module for more information.
Link to this function
end_game(game_name)
Specs
end_game(Hangman.Game.name()) :: :ok
Stops a game server process normally. It won't be restarted.
Examples
iex> alias Hangman.Engine
iex> Engine.new_game("Ben")
iex> Engine.end_game("Ben")
:ok