diff --git a/src/solutions/mod.rs b/src/solutions/mod.rs index ebd70a8..9e9460e 100644 --- a/src/solutions/mod.rs +++ b/src/solutions/mod.rs @@ -32,6 +32,7 @@ pub fn solution(day: DayNumber, year: Year) -> Box { 16 => Box::new(year2024::day16::Day16), 18 => Box::new(year2024::day18::Day18::default()), 19 => Box::new(year2024::day19::Day19), + 20 => Box::new(year2024::day20::Day20), _ => panic!("Day not exist"), }, Year::Year2023 => match i { diff --git a/src/solutions/year2024/day20.rs b/src/solutions/year2024/day20.rs new file mode 100644 index 0000000..f4880e9 --- /dev/null +++ b/src/solutions/year2024/day20.rs @@ -0,0 +1,26 @@ +use crate::solutions::Solution; + +pub struct Day20; + +impl Solution for Day20 { + fn part_one(&self, _input: &str) -> String { + String::from('0') + } + + fn part_two(&self, _input: &str) -> String { + String::from('0') + } +} + +#[cfg(test)] +mod tests { + use crate::solutions::year2024::day20::Day20; + use crate::solutions::Solution; + + const EXAMPLE: &str = r#""#; + + #[test] + fn part_one_example_test() { + assert_eq!("0", Day20.part_one(EXAMPLE)); + } +} diff --git a/src/solutions/year2024/mod.rs b/src/solutions/year2024/mod.rs index b0cc400..3801780 100644 --- a/src/solutions/year2024/mod.rs +++ b/src/solutions/year2024/mod.rs @@ -16,3 +16,4 @@ pub mod day15; pub mod day16; pub mod day18; pub mod day19; +pub mod day20;