doc: add roll 4d6 keep 3 lowest example

This commit is contained in:
2025-11-19 10:27:30 +01:00
parent 3a3c1487bb
commit c056b4f269
2 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
use oxidice_lib::dice::*;
fn main() {
let result = Handful::grab(4, 6).roll();
print!("{result} -> ");
let result = result.keep_lowest(3).unwrap();
print!("{result} -> ");
let result = result.sum().unwrap();
println!("{result}");
}