A fun command-line version of the classic Hangman game, written in C++ using functions for clean structure and easy modification.
This project is a straightforward implementation of Hangman using C++ functions to handle game setup, input processing, display logic, and win/loss detection. Itโs a great way to practice procedural programming and modular design.
- Select a random word from a predefined list
- Display placeholders for letters and update as correct guesses are made
- Track number of wrong guesses and visualize the โhangmanโ progress
- Handle invalid input, repeated guesses, & game-end conditions
- Simple and clear console UI โ easy to extend
Clone the repo and compile the code:
git clone https://github.com/Kayzm18/Hangman.git
cd Hangman
g++ -std=c++17 Hangman01.cpp -o Hangman