How amna-amna/dicegame works
Project type and purpose
• This is a single‐page, client‐side web game (“pigGame”).
• All code lives in the browser: index.html (markup), style.css (presentation), script.js (game logic).
File structure
• Top‐level files:
• index.html – the entire UI shell
• style.css – all visual styles
• script.js – game rules, state management, and event handlers
• .prettierrc – code‐style config (irrelevant for runtime)
• No backend, no database, no external services. It’s purely front‐end.
README for additional insights
• Game loop: on each dice roll, JS updates an in‐memory score or resets on “1.”
• UI actions: “Roll dice,” “Hold,” and “New game.”