How cricketmaestro18/team_game_js works
Cricket Mini Games is a browser-based cricket game service with account/profile features, saved game history and themes, and player-stat lookups. The user-facing flow is to choose a game, configure it, play through its game-specific stages, and view a result; the excerpts show Team Draft, Stats Winner, and Chase Master. The browser app and Node server are the principal layers. API wiring in the browser was not shown, so that connection is marked unverified; the README documents persistent account, history, profile-picture, and theme data.
Main entry points: app.js Game interface · server.mjs Player stats lookup · index.html Web shell · style.css Game styling
Components 21
Browser experience
- Web shell
index.html - Game interface
app.js - Game styling
style.css
Cricket games
- Team Draft
app.js - Stats Winner
app.js - Chase Master
app.js
Server features
- Accounts and profile
server.mjs - Game history
server.mjs - Theme settings
server.mjs - Player stats lookup
server.mjs - Player images
server.mjs - Chase squads
server.mjs
Saved data
- Account and history data
server.mjs - Saved themes
server.mjs - Draft player pool
server/draft-players.json - Player index
server/player-index.json - Squad fallback
server/chase-squads.json
External cricket data
- Cricket stats sites
- Player image sources
- Squad news source
Other components
- Player
Connections 22
- Player → Web shell: opens
- Web shell → Game interface: hosts
- Player → Game interface: plays
app.js - Game interface → Game styling: uses styles
- Game interface → Team Draft: configures
app.js - Game interface → Stats Winner: configures
app.js - Game interface → Chase Master: configures
app.js - Game interface → Accounts and profile: calls API
- Game interface → Game history: saves results
- Game interface → Theme settings: loads themes
- Game interface → Player stats lookup: requests stats
- Game interface → Player images: requests images
- Game interface → Chase squads: loads squads
- Accounts and profile → Account and history data: reads and writes
server.mjs - Game history → Account and history data: persists history
README.md - Theme settings → Saved themes: reads and writes
server.mjs - Team Draft → Draft player pool: loads players
README.md - Player stats lookup → Cricket stats sites: fetches stats
server.mjs - Player images → Player image sources: looks up images
server.mjs - Chase squads → Squad fallback: reads fallback
server.mjs - Chase squads → Squad news source: fetches squads
server.mjs - Player stats lookup → Player index: uses index