day07 finished
This commit is contained in:
parent
5a6abbd73c
commit
745abc936e
4 changed files with 1502 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ mod day03;
|
|||
mod day04;
|
||||
mod day05;
|
||||
mod day06;
|
||||
mod day07;
|
||||
mod template;
|
||||
|
||||
pub use template::DayTrait;
|
||||
|
|
@ -13,7 +14,7 @@ pub mod day_provider {
|
|||
use super::*;
|
||||
use thiserror::Error;
|
||||
|
||||
const MAX_DAY: usize = 6;
|
||||
const MAX_DAY: usize = 7;
|
||||
|
||||
pub fn get_day(day_num: usize) -> Result<Box<dyn DayTrait>, ProviderError> {
|
||||
match day_num {
|
||||
|
|
@ -23,6 +24,7 @@ pub mod day_provider {
|
|||
4 => Ok(Box::new(day04::Day)),
|
||||
5 => Ok(Box::new(day05::Day)),
|
||||
6 => Ok(Box::new(day06::Day)),
|
||||
7 => Ok(Box::new(day07::Day)),
|
||||
_ => Err(ProviderError::InvalidNumber(day_num)),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue