diff --git a/README.md b/README.md index 265bb3e..8f5e41f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ https://adventofcode.com/2024 | 07 | Bridge Repair | :pushpin: | :pushpin: | Equation parsing | | 08 | Resonant Collinearity | :pushpin: | | Matrix exploration | | 09 | Disk fragmenter | :pushpin: | | Array indexing | -| 10 | | | | | +| 10 | Hoof It | | | | | 11 | | | | | | 12 | | | | | | 13 | | | | | diff --git a/src/advent_of_code/mod.rs b/src/advent_of_code/mod.rs index 5a406fa..077c3c1 100644 --- a/src/advent_of_code/mod.rs +++ b/src/advent_of_code/mod.rs @@ -6,7 +6,8 @@ // mod fri_06; // mod sat_07; // mod sun_08; -mod mon_09; +// mod mon_09; +mod tue_10; mod types; mod utils; @@ -73,6 +74,10 @@ pub fn historian_hysteria() { // ); // Monday 09 - let disk_checksum = mon_09::disk_fragmenter("./assets/day_9_disk_input"); - println!("The disk checksum is {}", disk_checksum); + // let disk_checksum = mon_09::disk_fragmenter("./assets/day_9_disk_input"); + // println!("The disk checksum is {}", disk_checksum); + + // Tuesday 10 + let trailhead_score = tue_10::hoof_it("."); + println!("The trail head sum score is {}", trailhead_score); } diff --git a/src/advent_of_code/tue_10.rs b/src/advent_of_code/tue_10.rs new file mode 100644 index 0000000..2f4e72f --- /dev/null +++ b/src/advent_of_code/tue_10.rs @@ -0,0 +1,5 @@ +use super::*; + +pub fn hoof_it(input: &str) -> usize { + 0 +} diff --git a/src/advent_of_code/types.rs b/src/advent_of_code/types.rs index 28050ef..bb1d5a5 100644 --- a/src/advent_of_code/types.rs +++ b/src/advent_of_code/types.rs @@ -76,3 +76,6 @@ pub type AntinodeList = HashSet; pub type Block = Option; pub type DiskMap = Vec; pub type DiskChecksum = usize; + +// Hoof it +pub type TrailScore = usize; diff --git a/src/main.rs b/src/main.rs index 97af3d8..90ad74a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ +#![allow(dead_code)] mod advent_of_code; fn main() {