An open API service indexing awesome lists of open source software.

https://github.com/noracodes/d20roll

A dice roller application written in Rust, supporting "d20 system" notation.
https://github.com/noracodes/d20roll

Last synced: 7 months ago
JSON representation

A dice roller application written in Rust, supporting "d20 system" notation.

Awesome Lists containing this project

README

          

# d20roll

A dice roller application written in Rust, supporting "d20 system" notation. Download it [here](https://github.com/leotindall/d20roll/releases/). ISC licensed.

![A screenshot of the d20roll application, showing some completed rolls in the history list view](d20roll.png)

## Operation

`NdM` rolls N dice with M sides. Integer arithmetic is supported (using D&D rounding); `1d20 + 2` will roll a single 20 sided die and add 2. Parentheses are supported for grouping, so `(2d20 + 4) / 2 - (1d4 * 2)` will resolve as expected.

## Compiling

Simply download and run `cargo build --release`. Your binary will be available at `./target/release/d20roll`.

You may need GTK+3 libraries for your system to do this; please refer to [this page](http://gtk-rs.org/docs/requirements.html). For Ubuntu, the appropriate package is `libgtk-3-dev`.