Packages

hangman API to interact with hangman dictionary

Current section

Files

Jump to
hangmanJohnson lib type.ex
Raw

lib/type.ex

defmodule Hangman.Type do
# make types global
@type state :: :initializing | :won | :lost | :good_guess | :bad_guess | :already_used
@type tally :: %{
turns_left: integer,
game_state: state,
letters: list(String.t()),
used: list(String.t())
}
end