How anirbansahaargho/hangman-game works
This is a small, single-file interactive Hangman game. The main workflow collects a player name and difficulty, accepts a custom set of words, hints, and revealed positions, then runs letter-by-letter rounds until all words are solved or six wrong guesses are reached. The README documents three difficulty levels and Windows console feedback; all sampled implementation is in hangman.c.
Main entry points: hangman.c Word Round
Components 12
Game Setup
- Game Coordinator
hangman.c - Difficulty Selection
hangman.c - Custom Word Setup
hangman.c - Words and Hints
hangman.c
Gameplay
- Word Round
hangman.c - Initial Reveals
hangman.c - Guess Evaluation
hangman.c - Word Progress
hangman.c - Hangman Display
hangman.c - Console Feedback
hangman.c
Other components
- Player
- Windows Console APIs
Connections 22
- Player → Game Coordinator: starts game
- Game Coordinator → Player: requests name
- Game Coordinator → Difficulty Selection: selects mode
- Player → Difficulty Selection: chooses mode
- Difficulty Selection → Game Coordinator: sets word count
- Game Coordinator → Custom Word Setup: requests entries
- Player → Custom Word Setup: enters words
- Custom Word Setup → Words and Hints: stores entries
- Game Coordinator → Word Round: runs rounds
- Word Round → Words and Hints: reads word and hint
- Word Round → Initial Reveals: initializes display
- Initial Reveals → Word Progress: sets revealed letters
- Word Round → Hangman Display: draws current state
- Word Round → Word Progress: displays word
- Word Round → Player: requests guess
- Player → Guess Evaluation: enters letter
- Word Round → Guess Evaluation: checks guess
- Guess Evaluation → Word Progress: updates letters
- Guess Evaluation → Console Feedback: reports outcome
- Word Round → Console Feedback: reports round result
- Console Feedback → Windows Console APIs: beeps and pauses
- Game Coordinator → Windows Console APIs: clears screen