This commit is contained in:
2020-12-02 11:43:17 -08:00
commit 9eaf7517af
6 changed files with 157 additions and 0 deletions

22
src/main.rs Normal file
View File

@@ -0,0 +1,22 @@
extern crate reqwest;
extern crate tempfile;
use crate::problem1::part1::Problem1;
mod problem1;
mod util;
pub trait Problem {
// Parses input and generates state
fn new(input: &String) -> Self;
// Runs on state
fn run_part1(&self);
fn run_part2(&self);
}
fn main() {
let problem1 = Problem1::new(&util::get_problem(1));
problem1.run_part1();
problem1.run_part2();
}