How rajat-kes/the-number-hunt works
Number Hunt is a browser-based, local two-player number-search game. Players configure a match, take turns choosing a target and searching a generated board, and compete by elapsed-time scores; results and player history are retained locally. The game script also owns session recovery, profile/theme presentation, and match state. Configuration supplies shared defaults, while audio and runtime SEO are separate browser features. The README is empty, so capability coverage is based on the sampled source; the game excerpt is partial, and links to its internal stages are not asserted where calls were not shown.
Main entry points: game.js Game flow · audio.js Sound controls · config.js Game configuration
Components 15
Match play
- Game flow
game.js - Game configuration
config.js - Match setup
game.js - Target entry
game.js - Number search
game.js - Match results
game.js - Session recovery
game.js
Player profile
- Player profile
game.js - Theme selection
game.js - Game history
game.js - Browser storage
Browser features
- Sound controls
audio.js - Web Audio API
- Runtime SEO
seo.js
Other components
- Players
Connections 15
- Players → Game flow: play
- Game flow → Game configuration: reads settings
game.js - Game flow → Match setup: handles setup
game.js - Game flow → Target entry: handles target
game.js - Game flow → Number search: handles search
game.js - Game flow → Match results: handles results
game.js - Game flow → Session recovery: restores session
game.js - Game flow → Player profile: renders profile
game.js - Game flow → Theme selection: renders themes
game.js - Game flow → Game history: renders history
game.js - Game flow → Browser storage: reads/writes
game.js - Player profile → Browser storage: reads/writes
- Game flow → Sound controls: starts audio
game.js - Sound controls → Web Audio API: plays tones
audio.js - Sound controls → Browser storage: persists mute
audio.js