How silent-watcher/cli-word-guessing-game works
This Node.js CLI runs a letter-by-letter word guessing game. A player launches the entry point, sees the introduction, chooses whether to start, and then guesses letters against a randomly selected configured word. The game updates the displayed word and ends with a win or exhausted-attempts message. Runtime behavior is concentrated in index.js, with the word list and attempt limit in config.js; the graph separates those stages for clarity.
Main entry points: index.js Game entry point · config.js Word settings
Components 9
Game runtime
- Game entry point
index.js - Welcome display
index.js - Start prompt
index.js - Word settings
config.js - Word selection
index.js - Guess handling
index.js - Word display
index.js - Game outcome
index.js
Other components
- Player
Connections 9
- Player → Game entry point: launches
README.md - Game entry point → Welcome display: displays
index.js - Game entry point → Start prompt: prompts
index.js - Game entry point → Word settings: imports
index.js - Game entry point → Word selection: chooses
index.js - Word selection → Word display: initializes
index.js - Game entry point → Guess handling: requests
index.js - Guess handling → Word display: updates
index.js - Game entry point → Game outcome: checks
index.js