@hackage / hedra

A small library and executable for generating dice rolls.

Latest0.1

About

Metadata

  • Last updated , by vtan
  • License MIT
  • Categories Game Development
  • Maintained by: tanyi.viktor@gmail.com

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.6.3
  2. 8.4.4
  3. 8.2.2

Readme

hedra

As in polyhedra. Generates dice rolls in the REPL or in a standalone executable.

Example REPL session:

$ cabal v2-repl
λ> 2 `d` 8
8 | 1 7
λ> 1 `d` 20
13
λ> 1 `d` 100
25 | 20 5
λ> 4 `d` f
3 | [ ] [+] [+] [+]

Example session in the executable:

$ cabal v2-run hedra
hedra> 2d8
2d8: 14 | 6 8
hedra> 1d20
1d20: 1
hedra> d20
d20: 5
hedra> d100
d100: 61 | 60 1
hedra> d%
d%: 5 | 00 5
hedra> 4df
4df: 2 | [ ] [+] [+] [ ]