diff --git a/input/2023/01-trebuchet/input.txt b/input/year_2023/day_01_trebuchet/input.txt similarity index 100% rename from input/2023/01-trebuchet/input.txt rename to input/year_2023/day_01_trebuchet/input.txt diff --git a/input/2023/01-trebuchet/input_test.txt b/input/year_2023/day_01_trebuchet/input_test.txt similarity index 100% rename from input/2023/01-trebuchet/input_test.txt rename to input/year_2023/day_01_trebuchet/input_test.txt diff --git a/input/2023/02-cube-conundrum/input.txt b/input/year_2023/day_02_cube_conundrum/input.txt similarity index 100% rename from input/2023/02-cube-conundrum/input.txt rename to input/year_2023/day_02_cube_conundrum/input.txt diff --git a/input/2023/02-cube-conundrum/input_test.txt b/input/year_2023/day_02_cube_conundrum/input_test.txt similarity index 100% rename from input/2023/02-cube-conundrum/input_test.txt rename to input/year_2023/day_02_cube_conundrum/input_test.txt diff --git a/input/2023/03-gear-ratios/input.txt b/input/year_2023/day_03_gear_ratios/input.txt similarity index 100% rename from input/2023/03-gear-ratios/input.txt rename to input/year_2023/day_03_gear_ratios/input.txt diff --git a/input/2023/03-gear-ratios/input_test.txt b/input/year_2023/day_03_gear_ratios/input_test.txt similarity index 100% rename from input/2023/03-gear-ratios/input_test.txt rename to input/year_2023/day_03_gear_ratios/input_test.txt diff --git a/input/2023/04-scratchcards/input.txt b/input/year_2023/day_04_scratchcards/input.txt similarity index 100% rename from input/2023/04-scratchcards/input.txt rename to input/year_2023/day_04_scratchcards/input.txt diff --git a/input/2023/04-scratchcards/input_test.txt b/input/year_2023/day_04_scratchcards/input_test.txt similarity index 100% rename from input/2023/04-scratchcards/input_test.txt rename to input/year_2023/day_04_scratchcards/input_test.txt diff --git a/input/2023/06-wait-for-it/input.txt b/input/year_2023/day_06_wait_for_it/input.txt similarity index 100% rename from input/2023/06-wait-for-it/input.txt rename to input/year_2023/day_06_wait_for_it/input.txt diff --git a/input/2023/06-wait-for-it/input_test.txt b/input/year_2023/day_06_wait_for_it/input_test.txt similarity index 100% rename from input/2023/06-wait-for-it/input_test.txt rename to input/year_2023/day_06_wait_for_it/input_test.txt diff --git a/src/year_2023/day_01_trebuchet/part_one.rs b/src/year_2023/day_01_trebuchet/part_one.rs index 59e923a..c6eda37 100644 --- a/src/year_2023/day_01_trebuchet/part_one.rs +++ b/src/year_2023/day_01_trebuchet/part_one.rs @@ -1,7 +1,7 @@ use crate::utils::input_reader; pub fn part_one() { - if let Ok(lines) = input_reader::read_lines("./input.txt") { + if let Ok(lines) = input_reader::read_lines("./input/input.txt") { let mut result = 0; for line in lines {