{"id":18602902,"url":"https://github.com/fireisgood/dice-dice-generator","last_synced_at":"2025-05-16T18:13:16.578Z","repository":{"id":212937458,"uuid":"732650164","full_name":"FireIsGood/dice-dice-generator","owner":"FireIsGood","description":"Generates a game of Dice Dice—a small-scale gambling game simulation","archived":false,"fork":false,"pushed_at":"2023-12-22T02:05:05.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T01:43:03.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FireIsGood.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}},"created_at":"2023-12-17T11:54:32.000Z","updated_at":"2023-12-17T11:58:37.000Z","dependencies_parsed_at":"2023-12-22T03:56:14.416Z","dependency_job_id":null,"html_url":"https://github.com/FireIsGood/dice-dice-generator","commit_stats":null,"previous_names":["fireisgood/dice-dice-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireIsGood%2Fdice-dice-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireIsGood%2Fdice-dice-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireIsGood%2Fdice-dice-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireIsGood%2Fdice-dice-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FireIsGood","download_url":"https://codeload.github.com/FireIsGood/dice-dice-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254582912,"owners_count":22095519,"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","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":"2024-11-07T02:12:49.560Z","updated_at":"2025-05-16T18:13:16.557Z","avatar_url":"https://github.com/FireIsGood.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dice Dice Generator\n\nA Dice Dice generator written in Rust.\n\nDice Dice is a game I made up to simulate a miniature round of gambling. It is\na series of numbered answers that are covered by spoilers. Users start with a\ncertain number of points and may then click as many answers as they want.\nAnswers may be positive or negative towards score and the player counts the\nscore on their own.\n\nIt's just a random text game I made up on the spot since I was running out of\nideas for Minesweeper.\n\n```markdown\nConfig name: all good\n## Dice Dice (Day 1984)\n\n*Test Edition*\n\nUnspoiler any number of the following prompts, when you want to stop, record your number. You may then check the rest. (please don't post the answers)\n\nYou start with 100 points. Calculate on your points with what is written.\n:one: ||`add 5                   `||\n:two: ||`subtract 10             `||\n:three: ||`spin in a circle        `||\n```\n\n## Installation\n\nDownload the [latest release binary](https://github.com/FireIsGood/minesweeper-generator/releases) or build from the source.\n\nTo build from the source, clone the repo and run the cargo command:\n\n```bash\ncargo build --release\n```\n\nThe binary will be created in `./target/release`.\n\n## Usage\n\nThe binary requires a configuration [TOML](https://toml.io/en/) file in the\nfollowing format:\n\n```toml\n# Name of the config\nname = \"all good\"\n\n# Optional minimum length to pad to\nmin_length = 24\n\n# Optional rules to display\nrules = \"\"\"\n## Dice Dice (Day 1984)\n\n*Test Edition*\n\nUnspoiler any number of the following prompts, when you want to stop, record your number. You may then check the rest. (please don't post the answers)\n\nYou start with 100 points. Calculate on your points with what is written.\"\"\"\n\n# Vector of tables of answers\nanswers = [\n    # Answers have an optional number\n    { operation = \"add\", number = 5 },\n    { operation = \"subtract\", number = 10 },\n    { operation = \"spin in a circle\" },\n]\n```\n\nOnce you have a configuration, run the binary and supply the location of your\nconfig file.\n\n```bash\ndice-dice-generator ./path/to/config.toml\n```\n\n## Limitations\n\nDiscord only allows for 99 emotes to be rendered in a message, so the numbers\nin the message might get cut off at a certain length.\n\n## Contributing\n\nThis project is a generator for a game that I made up and the configuration\nfile is harder to write than just doing the whole thing by hand. If you really\nwant to contribute regardless of that, feel free to make issues or pull\nrequests.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireisgood%2Fdice-dice-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffireisgood%2Fdice-dice-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireisgood%2Fdice-dice-generator/lists"}