{"id":18360595,"url":"https://github.com/samasaur1/dicekit","last_synced_at":"2026-03-05T20:44:55.167Z","repository":{"id":33401974,"uuid":"145628892","full_name":"Samasaur1/DiceKit","owner":"Samasaur1","description":"A Swift module for simulating dice both real and unreal","archived":false,"fork":false,"pushed_at":"2022-07-27T23:22:59.000Z","size":18765,"stargazers_count":4,"open_issues_count":18,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T01:25:30.398Z","etag":null,"topics":["dice","hacktoberfest","simulating-dice","swift"],"latest_commit_sha":null,"homepage":"https://samasaur1.github.io/DiceKit/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"afl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Samasaur1.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-21T23:08:45.000Z","updated_at":"2023-11-19T20:03:56.000Z","dependencies_parsed_at":"2022-09-23T14:30:21.130Z","dependency_job_id":null,"html_url":"https://github.com/Samasaur1/DiceKit","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FDiceKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FDiceKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FDiceKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FDiceKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samasaur1","download_url":"https://codeload.github.com/Samasaur1/DiceKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247488805,"owners_count":20947001,"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","hacktoberfest","simulating-dice","swift"],"created_at":"2024-11-05T22:29:04.352Z","updated_at":"2026-03-05T20:44:55.133Z","avatar_url":"https://github.com/Samasaur1.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/Samasaur1/DiceKit/raw/master/logo/logo-black-alone.png\" height=\"150\" align=\"left\"\u003e\n\n# DiceKit [![tests](https://github.com/Samasaur1/DiceKit/actions/workflows/test.yml/badge.svg?event=push)](https://github.com/Samasaur1/DiceKit/actions/workflows/test.yml)\n\nA Swift framework for simulating dice both real and unreal.\n\n---\n\n**Documentation**: https://samasaur1.github.io/DiceKit/\n\n| Swift Version | Latest DiceKit version |\n| ------------- | ---------------------- |\n| Below Swift 4 | Not supported |\n| Swift 4.0.x | [v0.15.0](https://github.com/Samasaur1/DiceKit/releases/tag/v0.15.0) |\n| Swift 4.1.x | [v0.15.0](https://github.com/Samasaur1/DiceKit/releases/tag/v0.15.0) |\n| Swift 4.2.x | [Latest version](https://github.com/Samasaur1/DiceKit/releases/latest) |\n| Swift 5.0.x | [Latest version](https://github.com/Samasaur1/DiceKit/releases/latest) |\n| Swift 5.1.x | [Latest version](https://github.com/Samasaur1/DiceKit/releases/latest) |\n| Swift 5.2.x | [Latest version](https://github.com/Samasaur1/DiceKit/releases/latest) |\n| Swift 5.3.x | [Latest version](https://github.com/Samasaur1/DiceKit/releases/latest) |\n| Swift 5.4.x | [Latest version](https://github.com/Samasaur1/DiceKit/releases/latest) |\n| Swift 5.5.x | [Latest version](https://github.com/Samasaur1/DiceKit/releases/latest) |\n| Swift 5.6.x | [Latest version](https://github.com/Samasaur1/DiceKit/releases/latest) |\n| Swift 5.7.x | [Latest version](https://github.com/Samasaur1/DiceKit/releases/latest) |\n\n---\n\n## Quickstart\n\n### Add DiceKit to your project using the Swift Package Manager\n\n### Roll some dice\n\n```swift\nimport DiceKit\n\nlet myDie = Die.d6\nlet result = myDie.roll()\n\nlet myAbilityScore = try! myDie.roll(times: 4, .dropLowest)\n\nlet damageRoll = Dice(\"3d6 + 5\")\nlet probabilityDistribution = damageRoll.probabilities\nlet mightDoNoDamage = damageRoll.chance(of: ...0) != 0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamasaur1%2Fdicekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamasaur1%2Fdicekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamasaur1%2Fdicekit/lists"}