{"id":13665041,"url":"https://github.com/Time0o/diceprob","last_synced_at":"2025-04-26T05:31:32.952Z","repository":{"id":190159045,"uuid":"325114832","full_name":"Time0o/diceprob","owner":"Time0o","description":"An AnyDice interpreter","archived":false,"fork":false,"pushed_at":"2021-04-02T18:51:25.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-10T23:37:21.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/Time0o.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}},"created_at":"2020-12-28T20:54:35.000Z","updated_at":"2021-09-16T09:03:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"45060543-b33e-4f3c-8194-96956a1255fe","html_url":"https://github.com/Time0o/diceprob","commit_stats":null,"previous_names":["time0o/diceprob"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Time0o%2Fdiceprob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Time0o%2Fdiceprob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Time0o%2Fdiceprob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Time0o%2Fdiceprob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Time0o","download_url":"https://codeload.github.com/Time0o/diceprob/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250937076,"owners_count":21510886,"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-08-02T05:03:15.954Z","updated_at":"2025-04-26T05:31:32.575Z","avatar_url":"https://github.com/Time0o.png","language":"Haskell","funding_links":[],"categories":["Haskell"],"sub_categories":[],"readme":"# An Anydice interpreter\n\nDiceprob is an interpreter for the scripting language used by\n[AnyDice](https://anydice.com/). It should make it possible to run AnyDice\nscripts locally. It produces text output in the \"normal\" data format and\nsupports all major AnyDice features except function calls.\n\n## Installation\n\nVia [stack](https://docs.haskellstack.org/en/stable/README/).\n\n## Example\n\nGiven a file `test.ad`, containing:\n\n```\nloop M over {1..3} {\n  \\ roll two dice of size 2/4/6 \\\n  N: M * 2\n  output 2dN named \"two [N] sided dice\"\n}\n```\n\nDiceprob should output:\n\n```\n\"two 2 sided dice\",3.0,6.5,2,4\n#,%\n2,0.25\n3,0.5\n4,0.25\n\n\"two 4 sided dice\",5.0,22.5,2,8\n#,%\n2,6.25e-2\n3,0.125\n4,0.1875\n5,0.25\n6,0.1875\n7,0.125\n8,6.25e-2\n\n\"two 6 sided dice\",7.0,47.833333333333336,2,12\n#,%\n2,2.7777777777777776e-2\n3,5.555555555555555e-2\n4,8.333333333333333e-2\n5,0.1111111111111111\n6,0.1388888888888889\n7,0.16666666666666669\n8,0.1388888888888889\n9,0.1111111111111111\n10,8.333333333333333e-2\n11,5.555555555555555e-2\n12,2.7777777777777776e-2\n```\n\nIn general, output produced by Diceprob and AnyDice should be identical (but it\nmost likely still isn't for some corner cases).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTime0o%2Fdiceprob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTime0o%2Fdiceprob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTime0o%2Fdiceprob/lists"}