From 439b15d11ef05d03134d06e0bea0896c3189968a Mon Sep 17 00:00:00 2001 From: LordMathis Date: Mon, 18 Dec 2023 21:11:04 +0100 Subject: [PATCH] Harmonize module and input naming --- .../{2023/01-trebuchet => year_2023/day_01_trebuchet}/input.txt | 0 .../01-trebuchet => year_2023/day_01_trebuchet}/input_test.txt | 0 .../day_02_cube_conundrum}/input.txt | 0 .../day_02_cube_conundrum}/input_test.txt | 0 .../03-gear-ratios => year_2023/day_03_gear_ratios}/input.txt | 0 .../day_03_gear_ratios}/input_test.txt | 0 .../04-scratchcards => year_2023/day_04_scratchcards}/input.txt | 0 .../day_04_scratchcards}/input_test.txt | 0 .../06-wait-for-it => year_2023/day_06_wait_for_it}/input.txt | 0 .../day_06_wait_for_it}/input_test.txt | 0 src/year_2023/day_01_trebuchet/part_one.rs | 2 +- 11 files changed, 1 insertion(+), 1 deletion(-) rename input/{2023/01-trebuchet => year_2023/day_01_trebuchet}/input.txt (100%) rename input/{2023/01-trebuchet => year_2023/day_01_trebuchet}/input_test.txt (100%) rename input/{2023/02-cube-conundrum => year_2023/day_02_cube_conundrum}/input.txt (100%) rename input/{2023/02-cube-conundrum => year_2023/day_02_cube_conundrum}/input_test.txt (100%) rename input/{2023/03-gear-ratios => year_2023/day_03_gear_ratios}/input.txt (100%) rename input/{2023/03-gear-ratios => year_2023/day_03_gear_ratios}/input_test.txt (100%) rename input/{2023/04-scratchcards => year_2023/day_04_scratchcards}/input.txt (100%) rename input/{2023/04-scratchcards => year_2023/day_04_scratchcards}/input_test.txt (100%) rename input/{2023/06-wait-for-it => year_2023/day_06_wait_for_it}/input.txt (100%) rename input/{2023/06-wait-for-it => year_2023/day_06_wait_for_it}/input_test.txt (100%) 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 {