I built a command-line Hangman game to sharpen my C++ fundamentals while practicing clean project organization. The program loads words from a file, manages the game loop with a dedicated class, and demonstrates control flow, standard library containers, and file I/O in a concise codebase.
My goal with this project was to strengthen my comfort with modern C++17 syntax, especially around separating headers/sources, working with STL containers, and structuring reusable game logic. The Hangman domain is simple enough to focus on language mechanics yet rich enough to explore classes, functions, and data-driven behavior.
- C++17 compiled with
g++and the standard library. - Project organized into
include/headers andsrc/sources, built via a simple Makefile that outputs artifacts todist/. - Editing and debugging performed with a modern IDE/CLI workflow (VS Code + terminal).
- cppreference.com — authoritative reference for standard library classes and functions.
- cplusplus.com — quick lookups for iostream and string utilities.
- LearnCpp — refresher on idiomatic class design and header organization.
- Add ASCII art hangman visuals that progress with each wrong guess.
- Flesh out difficulty settings that change the attempt limit and word pools.
- Track session statistics (wins, losses, streaks) and persist them between runs.