day17 finished
This commit is contained in:
parent
6f3e94c5d1
commit
75c7b08449
5 changed files with 446 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ mod day13;
|
|||
mod day14;
|
||||
mod day15;
|
||||
mod day16;
|
||||
mod day17;
|
||||
mod template;
|
||||
|
||||
pub use template::DayTrait;
|
||||
|
|
@ -23,7 +24,7 @@ pub mod day_provider {
|
|||
use super::*;
|
||||
use thiserror::Error;
|
||||
|
||||
const MAX_DAY: usize = 16;
|
||||
const MAX_DAY: usize = 17;
|
||||
|
||||
pub fn get_day(day_num: usize) -> Result<Box<dyn DayTrait>, ProviderError> {
|
||||
match day_num {
|
||||
|
|
@ -43,6 +44,7 @@ pub mod day_provider {
|
|||
14 => Ok(Box::new(day14::Day)),
|
||||
15 => Ok(Box::new(day15::Day)),
|
||||
16 => Ok(Box::new(day16::Day)),
|
||||
17 => Ok(Box::new(day17::Day)),
|
||||
_ => Err(ProviderError::InvalidNumber(day_num)),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue