23 lines
422 B
Rust
Raw Normal View History

2023-12-01 06:41:23 +00:00
mod solutions;
2023-12-01 17:55:07 +00:00
mod utils;
2023-12-01 06:41:23 +00:00
2023-12-02 13:42:55 +00:00
use std::error::Error;
2023-12-01 07:42:48 +00:00
2023-12-01 16:13:54 +00:00
use solutions::*;
2023-12-01 07:42:48 +00:00
2023-12-01 17:55:07 +00:00
fn main() -> Result<(), Box<dyn Error>> {
2023-12-02 13:42:55 +00:00
let days: Vec<Box<dyn Solution>> = vec![
Box::new(day01::Day01 {}),
Box::new(day02::Day02 {}),
Box::new(day03::Day03 {}),
Box::new(day04::Day04 {}),
2023-12-02 13:42:55 +00:00
];
2023-12-01 16:13:54 +00:00
// Run through and generate solutions
for day in days.iter().rev() {
2023-12-02 13:42:55 +00:00
day.run()?;
}
2023-12-01 07:42:48 +00:00
Ok(())
}