{"id":29744200,"url":"https://github.com/dkmaker/risk","last_synced_at":"2025-07-26T04:39:03.049Z","repository":{"id":304073031,"uuid":"1017654494","full_name":"dkmaker/risk","owner":"dkmaker","description":"Virtual RISK Dice for mobile devices","archived":false,"fork":false,"pushed_at":"2025-07-11T01:36:27.000Z","size":896,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-11T05:33:57.884Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dkmaker.github.io/risk/","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/dkmaker.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}},"created_at":"2025-07-10T22:09:42.000Z","updated_at":"2025-07-11T01:36:30.000Z","dependencies_parsed_at":"2025-07-11T05:34:02.316Z","dependency_job_id":"0563825c-a551-4c85-b6ab-9ce44b61ee6a","html_url":"https://github.com/dkmaker/risk","commit_stats":null,"previous_names":["dkmaker/risk"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dkmaker/risk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Frisk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Frisk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Frisk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Frisk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkmaker","download_url":"https://codeload.github.com/dkmaker/risk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Frisk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267118210,"owners_count":24038791,"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-07-26T02:00:08.937Z","response_time":62,"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-07-26T04:38:53.635Z","updated_at":"2025-07-26T04:39:03.041Z","avatar_url":"https://github.com/dkmaker.png","language":"JavaScript","readme":"# Risk Dice Battle\n\nA mobile-optimized Progressive Web App (PWA) for Risk dice battles. Roll dice, track armies, and battle with style!\n\n## Features\n\n- **Progressive Web App**: Install on your phone's home screen for a native app experience\n- **Offline Support**: Play without an internet connection\n- **2-6 Players**: Customizable player names and official Risk colors\n- **Visual Battle Feedback**: Card glow effects show winners (green), losers (red), and ties (yellow)\n- **Mobile-First Design**: Optimized for phones and tablets with touch-friendly controls\n- **Persistent Players**: Names saved between sessions\n- **Authentic Risk Rules**: Proper dice mechanics with defender winning ties\n\n## Installation\n\n### As a PWA on iPhone/iOS:\n1. Open the app in Safari\n2. Tap the Share button\n3. Scroll down and tap \"Add to Home Screen\"\n4. Name it and tap \"Add\"\n\n### As a PWA on Android:\n1. Open the app in Chrome\n2. Tap the menu (3 dots)\n3. Tap \"Install app\" or \"Add to Home Screen\"\n\n## Development\n\n### Prerequisites\n- Node.js 18+\n- pnpm\n\n### Setup\n```bash\n# Install dependencies\npnpm install\n\n# Start development server\npnpm dev\n\n# Build for production\npnpm build\n\n# Preview production build\npnpm preview\n```\n\n### Deployment\nPush to the main branch to automatically deploy via GitHub Actions to GitHub Pages.\n\n## Game Flow\n\n1. **Setup Players**: Enter names for 2-6 players\n2. **Select Attacker**: Choose who's attacking\n3. **Select Defender**: Choose who's defending\n4. **Choose Armies**: Select army count (1-50) using button grid\n5. **Battle**: Roll dice and see visual results with card glow effects\n6. **Continue or Withdraw**: Keep battling or start a new game\n\n## Technologies\n\n- Vanilla JavaScript (ES6 modules)\n- CSS3 with animations\n- Vite for development and building\n- Service Worker for offline functionality\n- Local Storage for data persistence\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkmaker%2Frisk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkmaker%2Frisk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkmaker%2Frisk/lists"}