mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Prepare day 6
This commit is contained in:
12
2020/src/day06.rs
Normal file
12
2020/src/day06.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use std::io::Read;
|
||||
|
||||
use crate::Solution;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Day06;
|
||||
|
||||
impl Solution for Day06 {
|
||||
fn part1(&mut self, input: &mut dyn Read) -> String {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@ mod day02;
|
||||
mod day03;
|
||||
mod day04;
|
||||
mod day05;
|
||||
mod day06;
|
||||
|
||||
pub trait Solution {
|
||||
fn part1(&mut self, input: &mut dyn Read) -> String;
|
||||
@@ -22,6 +23,7 @@ pub fn get_implementation(day: usize) -> Box<dyn Solution> {
|
||||
3 => Box::new(day03::Day03::default()),
|
||||
4 => Box::new(day04::Day04::default()),
|
||||
5 => Box::new(day05::Day05::default()),
|
||||
6 => Box::new(day06::Day06::default()),
|
||||
_ => panic!("Unsupported day {}", day),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user