Skip to content

PrakharJain345/hangman_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hangman Game

A fun and interactive Hangman Game built with HTML, CSS, and JavaScript. Players try to guess the hidden word before the hangman is fully drawn!

Features

  • Multiple Themes: Choose from different word categories (City, Fruits, French Food).
  • Animated Hangman Drawing: Each incorrect guess adds a body part with a smooth fade-in effect.
  • Hint System: Reveal a random letter when stuck.
  • Dynamic Keyboard: Clickable on-screen keyboard for ease of play.
  • Responsive Design: Looks great on desktop and mobile devices.

How to Play

  1. Choose a theme from the available options.
  2. A random word from the selected theme is chosen, represented by underscores.
  3. Click letters from the virtual keyboard to guess the word.
  4. Each wrong guess adds a body part to the hangman.
  5. Use the Hint button to reveal a letter (optional).
  6. Win by guessing the word correctly before the hangman is fully drawn!

Installation & Usage

  1. Clone this repository:
    git clone https://github.com/yourusername/hangman-game.git
  2. Open the index.html file in a browser.
  3. Play and have fun!

Technologies Used

  • HTML: Structure of the game.
  • CSS: Styling and animations.
  • JavaScript: Game logic and interactivity.

Contributions

Feel free to contribute by adding more word categories, improving the UI, or optimizing the game logic! Fork the repo, make changes, and submit a pull request.

License

This project is open-source and available under the MIT License.


Enjoy playing the Hangman Game! 🎉

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published