#dice #rpg #game #gaming #roller

no-std cute-dnd-dice

Simple library to roll dices

7 stable releases (3 major)

4.0.0 Nov 3, 2020
3.1.0 May 5, 2020
3.0.0 Apr 28, 2020
2.1.0 Jul 1, 2019
1.0.1 Nov 11, 2018

#726 in Game dev

Download history 12/week @ 2023-08-15 117/week @ 2023-08-22 33/week @ 2023-08-29 16/week @ 2023-09-05 5/week @ 2023-09-12 3/week @ 2023-09-19 5/week @ 2023-09-26 3/week @ 2023-10-03 4/week @ 2023-10-10 4/week @ 2023-10-17 10/week @ 2023-10-24 13/week @ 2023-10-31 5/week @ 2023-11-07 13/week @ 2023-11-14 13/week @ 2023-11-21 30/week @ 2023-11-28

61 downloads per month

Apache-2.0

11KB
211 lines

cute-dnd-dice

Build Crates.io Documentation

Simple library to roll dices

Random source

Relies on getrandom by default

Usage

use cute_dnd_dice::Roll;

fn main() {
    let roll = Roll::from_str("2d20+10").expect("To parse roll");
    println!("I roll {}", roll.roll());
}

lib.rs:

Simple library to roll dices

Random source

Relies on getrandom by default

Usage

use cute_dnd_dice::Roll;

fn main() {
    let roll = Roll::from_str("2d20+10").expect("To parse roll");
    println!("I roll {}", roll.roll());
}

Dependencies

~88KB