summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 28558ebc7dbd3e83ca6ca0379bbfec91f3d8ff78 (plain)
1
2
3
4
5
6
7
8
9
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.")
    }
}