This is my try on the Advent of code of 2021 challanges with Java!
- Day 1 - Sonar Sweep: ⭐⭐
- Day 2 - Dive!: ⭐⭐
- Day 3 - Binary Diagnostic: ⭐⭐
- Day 4 - Giant Squid: ⭐⭐
- Day 5 - Hydrothermal Venture: ⭐⭐
- Day 6 - Lanternfish: ⭐⭐
- Day 7 - The Treachery of Whales: ⭐⭐
- Day 8 - Seven Segment Search: ⭐⭐
- Day 9 - Smoke Basin: ⭐⭐
- Day 10 - Syntax Scoring: ⭐⭐
- ...
Main.java: in this file you can find the main, that calls the days code. to call the right code, you need to add the right number here:
Days day = new DayX(reader.readInput("test.txt"));//exchange X for the number of the daydays: the code for each day will be in the days folder as a.javafile. I usedDays.javato create an Interface, that I then could implement every day to be faster in writing the code for every day.Inputs: all my input data for each day is saved the inputs folder as a.txtfile. I also have atest.txtfile, that I use for the example input of each days puzzle.Reader.java: This class helps to read the input data.