How aks1489/tenzies works
Project type and purpose
• This is a single-page application (SPA) game called “Tenzies,” implemented in React and built/served via Vite (Node).
• There is no separate backend API; instead it uses the browser’s Local Storage to persist game statistics.
File structure
• Top-level:
• index.html – the SPA host page
• src/ – React source code
• vite.config.js – build/dev server config (Node/Vite)
• src/ components:
• App.jsx – root component, holds game state and logic
• Header.jsx / Footer.jsx – UI chrome
• Main.jsx – game board wrapper, orchestrates dice and timer
• Main_Files/Die.jsx – individual die UI and click handler
• Main_Files/Timer.jsx – elapsed-time counter
• Main_Files/Modal.jsx – end-of-game overlay with stats
• Configuration: .eslintrc, .gitignore, package.json, etc., indicate standard Node/React toolchain.
README for additional insights
• Tech stack: React (client) + Node (dev/build server via Vite)
• Features: responsive design, persistent stats via Local Storage
Essential elements
• Arrowheads to show flow of events, data, and build artifacts