My attempt at the Advent of Code for 2020 using Java
_ _ __ _____ _ ___ ___ ___ ___
/\ | | | | / _| / ____| | | |__ \ / _ \__ \ / _ \
/ \ __| |_ _____ _ __ | |_ ___ | |_ | | ___ __| | ___ ) | | | | ) | | | |
/ /\ \ / _` \ \ / / _ \ '_ \| __| / _ \| _| | | / _ \ / _` |/ _ \ / /| | | |/ /| | | |
/ ____ \ (_| |\ V / __/ | | | |_ | (_) | | | |___| (_) | (_| | __/ / /_| |_| / /_| |_| |
/_/ \_\__,_| \_/ \___|_| |_|\__| \___/|_| \_____\___/ \__,_|\___| |____|\___/____|\___/
These instructions will get you a copy of the project up and running on your local machine for testing purposes.
You will need Java 11 or higher installed and configured on your system PATH.
It's best to use the OpenJDK, Windows users can get binaries from AdoptOpenJDK.
Clone the repository:
git clone https://github.com/Skerwe/Advent-of-Code-2020.git
- In bash/terminal/command line, cd into the project directory:
cd Advent-of-Code-2020
- Compile the application:
gradlew compileJava
- Execute the application by passing in the full name of the main class to run:
- To run Day 15:
gradlew -PmainClass=za.web.skerwe.adventofcode2020.Day15 run
- To run Day 16:
gradlew -PmainClass=za.web.skerwe.adventofcode2020.Day16 run
- To run Day 15:
The final output of the challenge is printed to the console or the log file for the specific day under the logs folder.
- Compile the tests:
gradlew compileTestJava
- Execute the tests:
gradlew test
- Java programming language
- Gradle build tool
- JUnit Jupiter (JUnit 5) testing framework
- Apache Log4j 2 logging framework
The source code is free -- see the LICENSE file for details