01 organized and 02 base logic done

This commit is contained in:
2024-12-03 16:20:59 +01:00
parent d653fcf6c4
commit f30a2ff86f
5 changed files with 88 additions and 16 deletions

View File

@@ -1,3 +1,4 @@
mod mon_02;
mod sun_01;
mod types;
mod utils;
@@ -9,8 +10,13 @@ pub fn today() {
}
pub fn historian_hysteria() {
let key = sun_01::sun_01("./assets/day_1_input").unwrap();
// Sunday 01
let key = sun_01::get_key("./assets/day_1_input").unwrap();
println!("The key is: {key}");
let similarity = sun_01::get_similarity("./assets/day_1_input");
println!("The similarity is: {similarity}");
// Monday 02
let safe_report_count = mon_02::check_reports_safety("");
println!("There are {safe_report_count} safe reports");
}