{"id":32639283,"url":"https://github.com/masflam/risk-dice-tools","last_synced_at":"2025-10-31T02:10:11.868Z","repository":{"id":255219191,"uuid":"848903003","full_name":"MasFlam/risk-dice-tools","owner":"MasFlam","description":"Risk: Global Domination dice-related tools","archived":false,"fork":false,"pushed_at":"2024-09-12T00:01:46.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-12T09:56:49.646Z","etag":null,"topics":["dice","risk"],"latest_commit_sha":null,"homepage":"https://riskdice.masflam.com","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MasFlam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-08-28T16:05:32.000Z","updated_at":"2024-09-12T00:01:50.000Z","dependencies_parsed_at":"2024-09-12T08:54:06.084Z","dependency_job_id":"7d04ed5a-d6bf-46b0-979e-05c54a141086","html_url":"https://github.com/MasFlam/risk-dice-tools","commit_stats":null,"previous_names":["masflam/risk-dice-tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MasFlam/risk-dice-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasFlam%2Frisk-dice-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasFlam%2Frisk-dice-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasFlam%2Frisk-dice-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasFlam%2Frisk-dice-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MasFlam","download_url":"https://codeload.github.com/MasFlam/risk-dice-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasFlam%2Frisk-dice-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281914569,"owners_count":26583084,"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-10-31T02:00:07.401Z","response_time":57,"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":["dice","risk"],"created_at":"2025-10-31T02:10:10.746Z","updated_at":"2025-10-31T02:10:11.858Z","avatar_url":"https://github.com/MasFlam.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Risk Dice Tools\n\n[Risk Dice Tools](https://riskdice.masflam.com) is collection of tools for use with the *Risk: Global Domination* board game.\nThese calculators can analyze battles potentially involving capitals and zombies, using both\nTrue Random and Balanced Blitz dice modes. The math behind them is exactly\nthe same as that used in the video game adaptation by SMG Studios. The only difference\nbeing that SMG Risk approximates the underlying true random dice roll distributions for\nBalance Blitz, whereas these tools do not. That's why they can fail on large inputs.\nMore precisely, when (*attacking troops* \u0026times; *defending troops*) is too large,\nthe WASM module can't allocate enough memory for its calculations.\n\n## Building\n\nFirst you have to build the WASM module. For that you need [Emscripten SDK](https://emscripten.org/docs/getting_started/downloads.html)\nand [CMake](https://cmake.org). I also haven't tested (and probably won't test) whether the CMake configuration works on anything other than Linux.\n\n```\n$ cd wasm\n$ emcmake cmake -B build\n$ make -C build\n```\n\nThen you copy the build artifacts over to the source tree: (*I should automate this better somehow*)\n\n```\n$ ./copy_to_lib.sh   # Needs to be run inside `/wasm`\n```\n\nAnd finally build the whole website, for which you need npm of something like that (comes with [Node.js](https://nodejs.org)):\n\n```\n$ cd ..\n$ npm install\n$ npm run build\n```\n\nYou should end up with a static side generated in a directory called `build` located at the root of the repository.\nHost it using nginx or whatever.\n\n## License\n\nThis repository is licensed under the GNU Affero General Public License version 3.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasflam%2Frisk-dice-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasflam%2Frisk-dice-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasflam%2Frisk-dice-tools/lists"}