Word guessing rounds and scoring.
Word guessing rounds and scoring.
A desktop Hangman application with user accounts, rounds, scoring, progress and leaderboard elements. Implemented with C++ and Qt, including separate supporting services and tests.
*File metrics count tracked files after excluding common generated build folders. The project status is an editable draft classification.
Capabilities evidenced by project documentation and source structure; some behaviours require platform configuration.
Word guessing rounds and scoring.
Authentication, player progression and leaderboards.
Qt desktop interface and supporting tests.
Technical architecture drawn from the repository and supplied documentation.
The project uses C++, Qt 6, SQLite, GoogleTest as its documented technical foundation.
The source tree and supplied README describe the primary modules; individual files and runtime behaviour may vary by platform.
Core guessing behavior and repeat-guess prevention
GuessResult HangmanEngine::GuessLetter(char letter) {
if (secret.empty()) return GuessResult::WrongLetter;
letter = NormalizeLetter(letter);
if (correct.count(letter) || wrong.count(letter))
return GuessResult::AlreadyTried;
if (secret.find(letter) != std::string::npos) {
correct.insert(letter);
RecalculateMistakes();
return GuessResult::CorrectLetter;
}
wrong.insert(letter);
RecalculateMistakes();
return GuessResult::WrongLetter;
}
The service creates a game from a stored word and calculates the number of allowed guesses.
Word word = wordRepo->GetWordById(wordId);
std::string wordName = word.GetName();
std::vector<char> solution(wordName.begin(), wordName.end());
int attempts = static_cast<int>(solution.size()) + 3;
std::string guid = GenerateGuid();
std::string createdAt = CurrentTimestamp();
Screenshots from supplied documentation and repository media. Missing visuals remain placeholders rather than invented screens.
To fill this space, add an approved screenshot with the exact filename shown below. The site currently displays a neutral placeholder.
assets/img/projects/hangman/screenshot-01.webp
Technology overview: C++, Qt 6, SQLite, GoogleTest. The list reflects documented tools, dependencies and proposed components; for planned projects it does not prove implementation.
File types identified: 54 .h, 27 .cpp, 1 .qss
Explore the public repository, source code and project documentation on GitHub.