lots of stuff ive done.
maybe a status would be good?
This commit is contained in:
+3
-3
@@ -27,6 +27,7 @@
|
||||
//
|
||||
|
||||
use std::{env, fs};
|
||||
use aoc::read_data;
|
||||
use crate::CardinalDirection::*;
|
||||
|
||||
#[derive(Debug)]
|
||||
@@ -101,9 +102,8 @@ fn manhattan_distance(directions: &str) -> i32 {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
||||
let directions = fs::read_to_string(format!("{}/data/01_data.txt", env::var("CARGO_MANIFEST_DIR").unwrap())).unwrap();
|
||||
let directions = directions.as_str();
|
||||
let binding = read_data("2016_01_data.txt");
|
||||
let directions = binding.as_str();
|
||||
let parmas: Vec<(&str, i32)> = vec![
|
||||
("R2, L3", 5),
|
||||
("R2, R2, R2", 2),
|
||||
|
||||
Reference in New Issue
Block a user