Crates.io | dwat20 |
lib.rs | dwat20 |
version | 0.1.0 |
source | src |
created_at | 2023-12-23 22:30:41.931478 |
updated_at | 2023-12-23 22:30:41.931478 |
description | A Rust crate for emulating dice rolls. |
homepage | https://github.com/MysticDwat/dwat20 |
repository | https://github.com/MysticDwat/dwat20 |
max_upload_size | |
id | 1079308 |
size | 2,589 |
Dwat20 is a Rust crate to emulate dice rolls for my projects.
Features will be added to this section as they come up in my other projects.
To install Dwat20 run:
cargo install dwat20
A simple d20:
use dwat20::*;
fn main() {
let die = Die::new(20);
println!("Die result: {}", die.roll())
}
Output:
Die result: 7