{"id":35015734,"url":"https://github.com/candytale55/react-tenzies","last_synced_at":"2026-05-21T11:36:25.694Z","repository":{"id":314519218,"uuid":"1055821956","full_name":"candytale55/react-tenzies","owner":"candytale55","description":"🎲 A React implementation of the dice game Tenzies, built with hooks, reusable components, and accessible design.","archived":false,"fork":false,"pushed_at":"2025-10-06T15:02:35.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-06T16:28:13.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/candytale55.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-12T21:33:16.000Z","updated_at":"2025-10-06T15:02:40.000Z","dependencies_parsed_at":"2025-09-13T00:28:13.086Z","dependency_job_id":"e9b2bcdc-27d8-41f4-8c54-901d0132d37c","html_url":"https://github.com/candytale55/react-tenzies","commit_stats":null,"previous_names":["candytale55/react-tenzies"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/candytale55/react-tenzies","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candytale55%2Freact-tenzies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candytale55%2Freact-tenzies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candytale55%2Freact-tenzies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candytale55%2Freact-tenzies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/candytale55","download_url":"https://codeload.github.com/candytale55/react-tenzies/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candytale55%2Freact-tenzies/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28072870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-27T05:19:37.137Z","updated_at":"2025-12-27T05:19:37.409Z","avatar_url":"https://github.com/candytale55.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎲 React Tenzies — A Mini Game for Practicing React State and Accessibility\n\n## Description\n\nA fast, responsive mini-game built with React to explore component state, interactivity, and accessibility best practices.\nRoll until all dice match — click dice to **hold** their value between rolls and keep going until every die shows the same number.\n\n---\n\n## Tech Stack\n\n**Core**\n\n* React (Vite)\n* JavaScript (ES6+)\n* CSS3 (Grid \u0026 Flexbox)\n\n**Tooling \u0026 Libraries**\n\n* ESLint\n* nanoid\n* react-confetti\n* react-use\n\n---\n\n## Live Demo\n\n[**Play React Tenzies on Netlify**](https://ct55-react-tenzies.netlify.app/)\n\n---\n\n## Project Structure\n\n```\nsrc/\n├── components/\n│   └── Die.jsx\n├── assets/\n│   ├── docs/\n│   │   ├── future-todos.md\n│   │   └── pseudocode.md\n│   └── shots/\n│       ├── scsh-01.png\n│       ├── scsh-02.png\n│       └── scsh-03.png\n├── App.jsx\n├── main.jsx\n└── index.css\n```\n\n---\n\n## Screenshots\n\n| Game Start                                    | Selected Dice                                    | Game Won                                    |\n| --------------------------------------------- | ------------------------------------------------ | ------------------------------------------- |\n| ![Game Start](./src/assets/shots/scsh-01.png) | ![Selected Dice](./src/assets/shots/scsh-02.png) | ![Game Won](./src/assets/shots/scsh-03.png) |\n\n---\n\n## Learning Outcomes\n\nThrough this project I practiced:\n\n* Managing component state and derived logic in React\n* Handling accessibility with `aria-pressed`, `aria-live`, and keyboard focus\n* Lazy state initialization and conditional rendering\n* Responsive layouts with CSS Grid and Flexbox\n* Integrating third-party React libraries for UX polish\n\n---\n\n## Future Improvements\n\nDetailed refactor ideas, accessibility updates, and planned features are documented here:\n➡️ [`future-todos.md`](./src/assets/docs/future-todos.md)\n\nThese include:\n\n* Extracting game logic into a custom hook\n* Adding roll animations and dark mode\n* Persisting scores and game state\n\n---\n\n## ⚙️ Getting Started\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/yourusername/react-tenzies.git\n   cd react-tenzies\n   ```\n2. **Install dependencies**\n\n   ```bash\n   npm install\n   ```\n3. **Run the app locally**\n\n   ```bash\n   npm run dev\n   ```\n\n---\n\n## Notes for Future Development\n\n\u003e **Note:**\n\u003e Keep all dice state in the parent (`App`) to maintain a single source of truth.\n\u003e Avoid derived or duplicated state in child components.\n\u003e Use **refs** for DOM focus management without triggering re-renders.\n\u003e See [future-todos.md](./src/assets/docs/future-todos.md) for more technical notes.\n\n\n---\n\n## References\n\n* Scrimba Course — [*Learn React*](https://scrimba.com/learn-react-c0e)\n* YouTube Tutorial — [Tenzies Game Walkthrough](https://youtu.be/x4rFhThSX04?si=wJI7yJ1cDVi8D7O5)\n* Dependencies — [nanoid](https://www.npmjs.com/package/nanoid), [react-confetti](https://github.com/alampros/react-confetti), [react-use](https://github.com/streamich/react-use)\n\n---\n\n## 📅 Project Status\n\n**Completed:** October 2025\n\n**Status:** Functional and stable — future improvements planned\n\n---\n\n### Summary\n\nThis project demonstrates React fundamentals, accessibility awareness, and thoughtful UI design — packaged into a clean, self-contained mini-game.\nIt’s designed as both a **learning project** and a **showcase of professional development practices**.\n\n---\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandytale55%2Freact-tenzies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcandytale55%2Freact-tenzies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandytale55%2Freact-tenzies/lists"}