Skip to content

sdcode39/HangmanProject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman

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.

Features

  • 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.

Getting Started

  1. Clone the repository or download the code files.
  2. Install Node.js if you haven't already.
  3. Navigate to the project directory in your terminal.
  4. Run npm install to install dependencies.
  5. Create a file named word_bank.txt in the project directory and add your list of words to be used in the game, with each word on a new line.
  6. Run the game by executing node hangman.js in your terminal.

Usage

  • 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!!

About

First project for the JavaScript fundamentals class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.4%
  • Shell 7.2%
  • PowerShell 6.4%