Hangman is a classic word-guessing game where the objective is to guess a hidden word, one letter at a time. This implementation of Hangman is a simple web-based version using HTML, CSS, and JavaScript.
- Interactive web interface
- Random word selection from a predefined list
- Tracking of incorrect guesses
- Display of current word state (with guessed letters revealed and unknown letters as underscores)
- Win/Lose detection and notification
- A web browser (e.g., Chrome, Firefox)
- Clone the repository to your local machine:
git clone https://github.com/y-singh09/Hangman-game.git
- Navigate to the project directory:
cd hangman-game
- Open
index.htmlin your web browser to start the game.
- The game will display a word with underscores representing each letter of the word.
- Guess letters one at a time by clicking on the alphabet buttons.
- If the guessed letter is in the word, it will be revealed in its correct positions.
- If the guessed letter is not in the word, it will be added to the list of incorrect guesses, and the hangman drawing will be updated.
- The game continues until you either guess the word correctly or run out of attempts.



