diff --git a/src/euler84/src/lib.rs b/src/euler84/src/lib.rs index b61baa7..1605874 100644 --- a/src/euler84/src/lib.rs +++ b/src/euler84/src/lib.rs @@ -46,7 +46,7 @@ pub enum Squares { CC3 = 33, G3 = 34, R4 = 35, - Ch3 = 36, + CH3 = 36, H1 = 37, T2 = 38, H2 = 39, @@ -170,6 +170,7 @@ impl Monopoly { Squares::CC3 => self.handle_community_chest(Squares::CC3), Squares::CH1 => self.handle_chance(Squares::CH1), Squares::CH2 => self.handle_chance(Squares::CH2), + Squares::CH3 => self.handle_chance(Squares::CH3), _ => square, } } diff --git a/src/euler84/src/main.rs b/src/euler84/src/main.rs index 9981421..cddd597 100644 --- a/src/euler84/src/main.rs +++ b/src/euler84/src/main.rs @@ -1,8 +1,8 @@ -mod lib; +use euler84::{Dice, Monopoly, Statistics}; fn main() { - let monopoly = lib::Monopoly::new(lib::Dice::SixSided); - let mut statistics = lib::Statistics::new(monopoly, 10_000_000); + let monopoly = Monopoly::new(Dice::SixSided); + let mut statistics = Statistics::new(monopoly, 50_000_000); statistics.run(); statistics.show(); }