review: replace i32 with Vec<i32> as roll return type for future exploding dice

This commit is contained in:
2025-11-16 10:28:53 +01:00
parent 98249789ee
commit f5e5ee2c91
2 changed files with 7 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ impl Handful {
pub fn roll(self) -> Outcome {
let mut die_rolls = Vec::<i32>::new();
for die in self.dice {
die_rolls.push(die.roll());
die_rolls.append(&mut die.roll());
}
Outcome::List(die_rolls)
}