This repository contains Java solutions for the Advent of Code puzzles. Advent of Code is an annual coding event that features a series of programming puzzles released daily in the days leading up to Christmas.
- Java 21
- Maven 3.7.0
To compile the project, make sure you have Java 21 and Maven 3.7.0 installed. Then, navigate to the project root directory and run the following command:
mvn clean installThis will compile the project and create an executable JAR file.
To run the project, use the following command:
java -jar advent-of-code-1.0-SNAPSHOT.jar-d, --day <day>: Solve the puzzle of the specified day.-y, --year <year>: Solve puzzles for the specified year.
To solve the puzzle for Day 1 of the year 2023, use the following command:
java -jar advent-of-code-1.0-SNAPSHOT.jar -d 1 -y 2023Feel free to explore and adapt the provided Java solutions for the Advent of Code challenges! If you encounter any issues or have suggestions, please open an issue or submit a pull request. Happy coding!