A Java-based implementation of Hangman with configurable difficulty levels.
- Difficulty Selection: Choose between Easy (10 attempts), Medium (8 attempts), or Hard (6 attempts).
- Word Management: Words are loaded from a file and assigned to difficulty tiers.
- Game State Tracking: Displays guessed letters, remaining attempts, and the partially revealed word.
- Input/Output Handling: Robust validation for user inputs and clear feedback via the console.
- Java JDK 8 or higher (to compile and run the project).
- A
words.txtfile in the project directory.
- Clone the repository or download the source files (e.g.
git clone https://github.com/mjsandagi/hangman). - Ensure
words.txtis present in the root directory. - Compile and run:
javac Hangman.java java Hangman
Enjoy the game!
