{"id":19587212,"url":"https://github.com/leocolman/dice-helper","last_synced_at":"2026-01-14T03:05:46.190Z","repository":{"id":36968593,"uuid":"371689729","full_name":"LeoColman/dice-helper","owner":"LeoColman","description":"RPG dice helper written in Kotlin for Kotlin. The dice helper assists with parsing dice notation and rolling different dice for all kinds of RPG systems.","archived":false,"fork":false,"pushed_at":"2023-12-15T20:25:39.000Z","size":111,"stargazers_count":5,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-05-01T16:48:46.487Z","etag":null,"topics":["dice","dice-roller","rpg"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeoColman.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}},"created_at":"2021-05-28T12:14:08.000Z","updated_at":"2024-05-01T16:48:46.488Z","dependencies_parsed_at":"2023-02-19T04:45:34.073Z","dependency_job_id":null,"html_url":"https://github.com/LeoColman/dice-helper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"LeoColman/colman-oss-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoColman%2Fdice-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoColman%2Fdice-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoColman%2Fdice-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoColman%2Fdice-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeoColman","download_url":"https://codeload.github.com/LeoColman/dice-helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224069487,"owners_count":17250456,"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":["dice","dice-roller","rpg"],"created_at":"2024-11-11T08:02:28.748Z","updated_at":"2026-01-14T03:05:46.149Z","avatar_url":"https://github.com/LeoColman.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dice Helper\n\n[![Build](https://github.com/LeoColman/dice-helper/actions/workflows/build.yml/badge.svg)](https://github.com/LeoColman/dice-helper/actions/workflows/build.yml)\n[![GitHub](https://img.shields.io/github/license/LeoColman/dice-helper)](https://github.com/LeoColman/dice-helper/blob/master/LICENSE) \n![Maven Central](https://img.shields.io/maven-central/v/br.com.colman/dice-helper)\n\nA Kotlin library to help you parse DiceNotations and roll dice for your RPG games.\n\n# Using\nAdding this library to your project is pretty simple, just add it to your gradle `dependencies`:\n\n```kotlin\nrepositories {\n    mavenCentral()\n}\ndependencies {\n    implementation(\"br.com.colman:dice-helper:version\")\n}\n```\n\n# Dice Notation\nThis library tries to implement a Dice Notation as it's commonly used. More use cases will be added as they're needed.\n\nYou can understand a little bit more of Dice Notation by reading [this Wikipedia article](https://en.wikipedia.org/wiki/Dice_notation).\n\n# Features\n\nParse dice notation (currently only supports `+` and `-`)\n```kotlin\nval diceNotation: DiceNotation = \"5d6 + 12 - 3d5\".diceNotation()\n```\n\nRoll all dice/fixed values in a dice notation\n```kotlin\nval result: NotationRollResult = diceNotation.roll()\nval total = result.total\nval individualResults: List\u003cDiceRollResult\u003e = result.results\n```\n\nRoll a group of dice\n```kotlin\n// 15d10\nval rollResult: List\u003cInt\u003e = RandomDice(amount = 15, maxFaceValue = 10).roll()\nval total = rollResult.sum()\n```\n\n# Contributing\nPlease, feel free to create an issue or to open a pull request! I'll be glad to have your help :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleocolman%2Fdice-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleocolman%2Fdice-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleocolman%2Fdice-helper/lists"}