init
This commit is contained in:
22
src/main.rs
Normal file
22
src/main.rs
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user