mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Implement day 16.
This commit is contained in:
@@ -6,3 +6,4 @@ authors = ["Bert Peters <bert@bertptrs.nl>"]
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
clap = "2.32"
|
clap = "2.32"
|
||||||
regex = "1.0"
|
regex = "1.0"
|
||||||
|
itertools = "0.7.8"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
extern crate clap;
|
extern crate clap;
|
||||||
extern crate regex;
|
extern crate regex;
|
||||||
|
extern crate itertools;
|
||||||
use clap::{Arg, App};
|
use clap::{Arg, App};
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::io;
|
use std::io;
|
||||||
@@ -7,11 +8,13 @@ use std::io;
|
|||||||
pub mod common;
|
pub mod common;
|
||||||
pub mod day1;
|
pub mod day1;
|
||||||
pub mod day15;
|
pub mod day15;
|
||||||
|
pub mod day16;
|
||||||
|
|
||||||
fn get_impl(day: i32) -> Box<common::Solution> {
|
fn get_impl(day: i32) -> Box<common::Solution> {
|
||||||
match day {
|
match day {
|
||||||
1 => { Box::new(day1::Day1::new()) }
|
1 => { Box::new(day1::Day1::new()) }
|
||||||
15 => { Box::new(day15::Day15::new()) }
|
15 => { Box::new(day15::Day15::new()) }
|
||||||
|
16 => { Box::new(day16::Day16::new()) }
|
||||||
_ => {
|
_ => {
|
||||||
panic!("Unimplemented day {}", day)
|
panic!("Unimplemented day {}", day)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user