package odds
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=17fb0a345940e7386c6fa3be25257cf3
sha256=1ff1811686f83a278739761bc016ff2ef255385226a77ca00eb9276831755950
sha512=05317be9d6ecc613afb9ec6c702da2869f8e73b24bf2568087f3ae8c02454b14a105b4e10248d48803631abf8ddf60f2931931e704adf5f7631e41184848474b
Description
README
Odds — OCaml Dice Dice Something
%%VERSION%%
Odds is an OCaml library for rolling dice. It features deterministic dice rolls and it uses effects in order to leave all PRNG choices to the binary/main rather than embedding it in the library code.
Installation
Odds can be installed with opam:
opam install oddsStructure
Odds.Dicecontains basic definitions for dice rolling. The code exported by this module only ever perform theOdds.Dice.Rolleffect and no other side-effect. In particular it does not handle PNRG state: instead, the caller ofevalis responsible for installing an effect handler forRoll.rollis an implementation of a simple dice-roller using theOddslibrary. It is mostly intended to be used as an example for how to useOdds. In particular, how to handle theRoll` effect.tests/contains tests for the parser (Odds.Parser,Odds.Lexer) and the roller (Odds.Dice.evalfunction). This latter test only checks that the evaluation of a formula performs the expectedRolleffects, it does not make any assertion on the actual result.
Documentation
To generate the documentation, use dune build @doc
To consult online documentation, visit https://raphael-proust.github.io/code/odds/index.html
Dev Dependencies
None
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building odds with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 1.2 (this version) | n/a | n/a | good | good | good |
| 1.0 | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure