day11 finished

This commit is contained in:
Ruediger Ludwig 2023-02-07 21:16:55 +01:00
parent 54fd03233a
commit 6509fc79ea
5 changed files with 334 additions and 2 deletions

View file

@ -8,6 +8,7 @@ mod day07;
mod day08;
mod day09;
mod day10;
mod day11;
mod template;
pub use template::DayTrait;
@ -17,7 +18,7 @@ pub mod day_provider {
use super::*;
use thiserror::Error;
const MAX_DAY: usize = 10;
const MAX_DAY: usize = 11;
pub fn get_day(day_num: usize) -> Result<Box<dyn DayTrait>, ProviderError> {
match day_num {
@ -31,6 +32,7 @@ pub mod day_provider {
8 => Ok(Box::new(day08::Day)),
9 => Ok(Box::new(day09::Day)),
10 => Ok(Box::new(day10::Day)),
11 => Ok(Box::new(day11::Day)),
_ => Err(ProviderError::InvalidNumber(day_num)),
}
}