#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

#777 in Game dev

Download history 4/week @ 2023-10-19 18/week @ 2023-10-26 5/week @ 2023-11-02 6/week @ 2023-11-09 12/week @ 2023-11-16 13/week @ 2023-11-23 29/week @ 2023-11-30 3/week @ 2023-12-07 13/week @ 2023-12-14 20/week @ 2023-12-21 3/week @ 2023-12-28 10/week @ 2024-01-04 5/week @ 2024-01-11 16/week @ 2024-01-18 16/week @ 2024-01-25 17/week @ 2024-02-01

54 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

~200KB