Skip to content

ifra817/Hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🪂 Hangman Game in C++

A classic two-player Hangman game implemented in C++.

🎮 How to Play

  1. Player 1 enters a secret word and provides a hint.
  2. Player 2 tries to guess the word letter by letter.
  3. The game provides visual feedback:
    • ✅ Correct guesses reveal letters.
    • ❌ Incorrect guesses reduce the number of attempts.
  4. The player wins if they guess the word before running out of attempts.

🛠 Features

  • Displays a hangman drawing based on incorrect attempts.
  • Provides a hint to assist Player 2.
  • Prevents repeated guesses.
  • Supports uppercase conversion for consistency.

📌 Requirements

  • C++ Compiler (e.g., g++ or MSVC)
  • Windows (uses windows.h and system("cls"))

▶️ Compile & Run

g++ Hangman.cpp -o Hangman
Hangman.exe

About

Command-Line Based Hangman Game in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages