mod dice; fn main() { println!("Rolling d20:"); match dice::roll_formula("d20") { Some(result) => println!("{}", result), None => eprintln!("Error: Invalid roll formula, or die roll otherwise failed.") } }