Keep/Drop Function #92
|
@ -19,7 +19,9 @@ pub trait Rolled {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||||
// array of rolls in order, how many dice to keep, and how many to drop
|
/// array of rolls in order, how many dice to keep, and how many to drop
|
||||||
kg333 marked this conversation as resolved
Outdated
|
|||||||
|
/// keep indicates how many of the highest dice to keep
|
||||||
|
/// drop indicates how many of the highest dice to drop
|
||||||
pub struct DiceRoll (pub Vec<u32>, usize, usize);
|
pub struct DiceRoll (pub Vec<u32>, usize, usize);
|
||||||
|
|
||||||
impl DiceRoll {
|
impl DiceRoll {
|
||||||
|
|
Loading…
Reference in New Issue
Add a third
/
to get the Rustdoc working. It may also be good to more thoroughly describe what keep and drop mean here, namely that they mean keeping the highest or dropping the highest rolls.