stack build
stack exec Hangman
To debug tests via REPL
stack ghci Hangman:tests
To run tests
stack test
Preview:
Guess a letter: Your guess was: t
This character isn't in the word, try again.
Current puzzle is: _ a l _ n e s s Wrong guesses: tuoi Guesses left: 3
p
Guess a letter: Your guess was: p
This character isn't in the word, try again.
Current puzzle is: _ a l _ n e s s Wrong guesses: ptuoi Guesses left: 2
m
Guess a letter: Your guess was: m
This character is in the word, filling in the character accordingly
Current puzzle is: _ a l m n e s s Wrong guesses: ptuoi Guesses left: 2
c
Guess a letter: Your guess was: c
This character is in the word, filling in the character accordingly
You win!