Packages

Is a random word generator dictionary used to create hangman game

Current section

Files

Jump to
dictionary_johnson lib dictionary.ex
Raw

lib/dictionary.ex

defmodule Dictionary do
alias Dictionary.Runtime.Server
@opaque t :: Server.t()
@doc ~S"""
use this method to generate a random english word
"""
@spec generate_random() :: String.t()
defdelegate generate_random(), to: Server, as: :get_random
end