Crates.io | tiny_die |
lib.rs | tiny_die |
version | 0.2.2 |
source | src |
created_at | 2020-02-14 22:35:19.209484 |
updated_at | 2021-03-15 13:49:31.466041 |
description | A tiny lib crate for tiny dice. |
homepage | |
repository | https://github.com/aburgd/rpg |
max_upload_size | |
id | 209236 |
size | 18,134 |
this tiny crate provides the means of incorporating die rolls into your own project.
uses no_std
.
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());
}
Licensed under either of
at your option.
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.