Hangman Game

A classic Hangman game implemented using Python and Pygame. The game allows users to guess letters to reveal a hidden word within a limited number of attempts. The project features interactive elements, including dynamic button generation, fade-in animations for the hangman image, and a sparkle effect for correct guesses.

Features

  • Interactive Gameplay: Users can select categories and guess letters to reveal the hidden word.
  • Dynamic Interface: Includes buttons for each letter, a hangman image that fades in as the player loses lives, and a sparkle effect for correct guesses.
  • Category-Based Words: Words are categorized and loaded from a words.txt file.
  • Pygame Integration: Utilizes Pygame for graphics and game mechanics.

Live Demo

Play the game live at: Hangman Game

Technologies Used

  • Python: A versatile programming language used to develop the game logic and interface.
  • Text Files: Uses words.txt to store movie names and actor names, which can be easily updated.

Usage

  1. Clone the repository to your local machine.
  2. Ensure you have Python installed on your system.
  3. Update the words.txt file with desired movie names and actor names.
  4. Run the main Python script to start the game.
  5. Follow the on-screen instructions to play the game.

Contributions

Contributions to the project are welcome! Feel free to submit pull requests for bug fixes, feature enhancements, or new categories of words.

License

This project is licensed under the MIT License, allowing for free use, modification, and distribution.

Acknowledgments

This project builds upon the classic Hangman game, incorporating modern twists with movie names and Indian actors to provide an engaging and educational experience.