How redward42/word-chain works
Word Chain is a walk-up, single-device word game: a player guesses the hidden links in a compound-word chain until it is completed, with wrong guesses revealing letters rather than ending play. App owns round selection, scoring, reveal progression, and feedback; dedicated components present the chain, input, controls, and dialogs. The README documents in-memory shuffled-bag rounds, theme persistence, and synthesized audio. Edges reflect the sampled App and component code or explicit README behavior; unsampled implementation details are not asserted.
Main entry points: App.tsx Round controller · GuessForm.tsx Guess form · Header.tsx Score and controls · EndModal.tsx Completion modal
Components 14
Game runtime
- Round controller
src/App.tsx - Game state types
src/components/types.ts
Chain content
- Word chains
src/data/wordChains.ts
Game interface
- Chain overview
src/components/ChainOverview.tsx - Guess form
src/components/GuessForm.tsx - Score and controls
src/components/Header.tsx - Status toast
src/components/Toast.tsx - Completion modal
src/components/EndModal.tsx - How-to modal
src/components/HowToModal.tsx - Modal overlay
src/components/ModalOverlay.tsx
Feedback and audio
- Synthesized sound
src/sounds.ts
Other components
- Player
- Web Audio API
- Browser local storage
Connections 17
- Player → Guess form: enters guesses
README.md - Player → Score and controls: starts rounds
README.md - Round controller → Word chains: selects from
src/App.tsx - Round controller → Chain overview: renders
src/App.tsx - Round controller → Guess form: renders
src/App.tsx - Round controller → Score and controls: renders
src/App.tsx - Round controller → Status toast: renders
src/App.tsx - Round controller → Completion modal: renders
src/App.tsx - Round controller → How-to modal: renders
src/App.tsx - Round controller → Game state types: uses
src/App.tsx - Score and controls → Round controller: dispatches actions
src/components/Header.tsx - Guess form → Round controller: submits guess
src/App.tsx - Completion modal → Modal overlay: uses
src/components/EndModal.tsx - How-to modal → Modal overlay: uses
src/components/HowToModal.tsx - Round controller → Synthesized sound: plays feedback
src/App.tsx - Synthesized sound → Web Audio API: synthesizes audio
src/sounds.ts - Round controller → Browser local storage: persists theme
README.md