A simple console-based application for the game of Hangman. However, this version has a twist. The word selected ins't chosen until the last moment possible. There is a word dictionary with approximately 120,000 words. After each letter guess is made, (and the word length during the game setup) the list of possible outcomes is chosen such that the largest number of words remain. If the word isn't guessed in the allotted number of guesses, a random word is selected from the remaining list of possible solutions.
This was done as an educational project to help learn Elixir and it's tools. As such, there are many things lacking from what would be a "real" application.
The game doesn't perform any input validation. Thus, it is easy to crash the game by entering characters when numbers are expected. Similarly, entering multiple characters or a number for a letter guess will not crash the game, but won't record a correct guess and will lower the guesses remaining count.
Only a single GenServer supported.
The console I/O is very primitive.
mix run
mix test --no-start
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/hangman.