This is a simple hangman game implemented in Node.js. The game allows the player to guess letters to reveal a hidden word. The player has six incorrect guesses before the game ends.
- Random word selection from a word bank file.
- Display of guessed letters and incorrect guesses remaining.
- Case-insensitive letter input.
- Option to play again after completing a game.
- Tracking of wins and losses.
- Clone the repository or download the code files.
- Install Node.js if you haven't already.
- Navigate to the project directory in your terminal.
- Run
npm installto install dependencies. - Create a file named
word_bank.txtin the project directory and add your list of words to be used in the game, with each word on a new line. - Run the game by executing
node hangman.jsin your terminal.
- Enter a letter to guess.
- Keep guessing letters until you either guess the word or run out of incorrect guesses.
- After each game, you'll be prompted to play again or quit.
Have FUN!!