day 24 finsihed
This commit is contained in:
parent
62cb729aee
commit
abc1530bf3
9 changed files with 641 additions and 9 deletions
|
|
@ -21,6 +21,7 @@ mod day20;
|
|||
mod day21;
|
||||
mod day22;
|
||||
mod day23;
|
||||
mod day24;
|
||||
mod template;
|
||||
|
||||
pub use template::DayTrait;
|
||||
|
|
@ -30,7 +31,7 @@ pub mod day_provider {
|
|||
use super::*;
|
||||
use thiserror::Error;
|
||||
|
||||
const MAX_DAY: usize = 23;
|
||||
const MAX_DAY: usize = 24;
|
||||
|
||||
pub fn get_day(day_num: usize) -> Result<Box<dyn DayTrait>, ProviderError> {
|
||||
match day_num {
|
||||
|
|
@ -57,6 +58,7 @@ pub mod day_provider {
|
|||
21 => Ok(Box::new(day21::Day)),
|
||||
22 => Ok(Box::new(day22::Day)),
|
||||
23 => Ok(Box::new(day23::Day)),
|
||||
24 => Ok(Box::new(day24::Day)),
|
||||
_ => Err(ProviderError::InvalidNumber(day_num)),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue