How robertilles952/hangman-py works
This is a small command-line Hangman game. The user chooses a difficulty, then guesses letters until the word is revealed or lives run out; the program reports the result and offers another round. The game logic is implemented in one file, with difficulty selection, guess validation, word rendering, and life counting as distinct responsibilities. The graph reflects the calls and interactions visible in hangman.py; it does not imply a separate subsystem structure.
Main entry points: hangman.py Game round
Components 9
Other components
- Player
- Game round
hangman.py - Difficulty choice
hangman.py - Secret word
hangman.py - Guess validation
hangman.py - Word rendering
hangman.py - Life counting
hangman.py - Replay loop
hangman.py - Random generator
Connections 11
- Player → Game round: starts round
hangman.py - Game round → Player: prompts and reports
hangman.py - Player → Game round: enters choices
hangman.py - Game round → Difficulty choice: chooses lives
hangman.py - Game round → Random generator: selects word
hangman.py - Game round → Guess validation: checks guesses
hangman.py - Game round → Word rendering: renders word
hangman.py - Game round → Life counting: updates lives
hangman.py - Replay loop → Player: asks to replay
hangman.py - Player → Replay loop: chooses replay
hangman.py - Replay loop → Game round: starts round
hangman.py