A classic two-player Hangman game implemented in C++.
- Player 1 enters a secret word and provides a hint.
- Player 2 tries to guess the word letter by letter.
- The game provides visual feedback:
- ✅ Correct guesses reveal letters.
- ❌ Incorrect guesses reduce the number of attempts.
- The player wins if they guess the word before running out of attempts.
- Displays a hangman drawing based on incorrect attempts.
- Provides a hint to assist Player 2.
- Prevents repeated guesses.
- Supports uppercase conversion for consistency.
- C++ Compiler (e.g., g++ or MSVC)
- Windows (uses
windows.h
andsystem("cls")
)
g++ Hangman.cpp -o Hangman
Hangman.exe