Constructor-Hangman
Coding Bootcamp Project
This command line application uses constructors and the inqurirer node module to create a hangman game. Random words or phrases are chosen from an array and displayed as underscores, and the user is prompted to guess a letter. If the user submits a valid and correct letter, the appropriate letter appears in place of the underscore. If the letter is incorrect, the user loses a guess. The user wins by guessing all the correct letters of a word or phrase. If the user wins, a new random word or phrase is chosen and displayed automatically, and the user is prompted to be begin guessing again. The game ends when the user runs out of guesses.