Skip to content

Commit

Permalink
Tidy up main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
javorszky committed Dec 4, 2024
1 parent 076e7d5 commit 4891307
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@

fn main() {

println!("Hello world! You're reading the Advent of code solutions by Gabor Javorszky.\n");
println!("You're reading the Advent of Code 2024 solutions by Gabor Javorszky.");
println!("Find the source code at https://github.com/javorszky/adventofcode2024.");

// Day 01
// let d1 = day01::Day01::new();
// println!("Day 1 part 1: {}", d1.solve());
// println!("Day 1 part 2: {}\n", d1.solve_two());
let d1 = day01::Day01::new();
println!("\nDay 1 part 1: {}.", d1.solve());
println!("Day 1 part 2: {}.", d1.solve_two());

// Day 02
// let d2 = day02::Day02::new();
// println!("Day 2 part 1: {}", d2.part1());
// let (_, result) = d2.part2();
// println!("Day 2 part 2: {}", result);
let d2 = day02::Day02::new();
println!("\nDay 2 part 1: {}.", d2.part1());
let (_, result) = d2.part2();
println!("Day 2 part 2: {}.", result);

// Day 03
// let d3 = day03::Day03::new();
// println!("Day 3 part 1: sum of valid mul products is {}", d3.part1());
//
// println!("Day 3 part 2: {}", d3.part2());
let d3 = day03::Day03::new();
println!("\nDay 3 part 1: sum of valid mul products is {}.", d3.part1());

println!("Day 4 part 1: {}", day04::part1())
println!("Day 3 part 2: sum of valid and enabled mul products is {}.", d3.part2());

println!("\nDay 4 part 1: number of XMAS words: {}.", day04::part1());
println!("Day 4 part 2: number of pair of MAS words in diagonal X shape: {}.", day04::part2());
}

0 comments on commit 4891307

Please sign in to comment.