tiny_die

Crates.iotiny_die
lib.rstiny_die
version0.2.2
sourcesrc
created_at2020-02-14 22:35:19.209484
updated_at2021-03-15 13:49:31.466041
descriptionA tiny lib crate for tiny dice.
homepage
repositoryhttps://github.com/aburgd/rpg
max_upload_size
id209236
size18,134
Alec Burgdorf (aburgd)

documentation

README

tiny_die

this tiny crate provides the means of incorporating die rolls into your own project. uses no_std.

example

use tiny_die::Die;

fn main() {
    let dee_six: Die = Die::new(6);
    // or you can use Die::default(), you'll get the same d6
    println!("rolled a {}", dee_six.roll());
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 17

cargo fmt