[][src]Crate mice

mice, messing with dice

The heading obviates the need for a body.

This crate is written primarily for my own usage, and will likely obtain extensions related to games that I play.

Modules

util

Nice to have utilities that aren't core to dice manipulation itself, just handy for some reason.

Structs

ExpressionResult

Enums

RollError

Most general mice error type.

Functions

roll

Evaluate a dice expression! This function takes the usual dice expression format, and allows an arbitrary number of terms.

roll_tupls

Roll and sum a slice of tuples, in the form provided by this function's complement: tupl_vec

tupl_vec

Get a Vec of tuples of the form: (number of dice, number of faces)