Switch to other account, new riddles
This commit is contained in:
parent
556b85e532
commit
96fca503ab
19 changed files with 8869 additions and 8946 deletions
|
|
@ -13,6 +13,7 @@ mod day12;
|
|||
mod day13;
|
||||
mod day14;
|
||||
mod day15;
|
||||
mod day16;
|
||||
mod template;
|
||||
|
||||
pub use template::DayTrait;
|
||||
|
|
@ -22,7 +23,7 @@ pub mod day_provider {
|
|||
use super::*;
|
||||
use thiserror::Error;
|
||||
|
||||
const MAX_DAY: usize = 15;
|
||||
const MAX_DAY: usize = 16;
|
||||
|
||||
pub fn get_day(day_num: usize) -> Result<Box<dyn DayTrait>, ProviderError> {
|
||||
match day_num {
|
||||
|
|
@ -41,6 +42,7 @@ pub mod day_provider {
|
|||
13 => Ok(Box::new(day13::Day)),
|
||||
14 => Ok(Box::new(day14::Day)),
|
||||
15 => Ok(Box::new(day15::Day)),
|
||||
16 => Ok(Box::new(day16::Day)),
|
||||
_ => Err(ProviderError::InvalidNumber(day_num)),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue