This repository has some helper classes to solve AOC problems quickly.
It has the abstract class AdventOfCodeSolver which users can extend and implement.
Then you can run solver in a main method like so
public static void main(String[] args) {
var runner = AdventOfCodeRunner.getRunner(AdventConstants.YEAR_2021, AdventConstants.DAY1);
var solver = new YourSolver();
runner.solve(solver);
}- Java 17
- Maven 3+
Advent of Code uses OAuth to assign custom session tokens to each distinct logged-in user.
This enables custom inputs and custom answers for each AOC problem.
AdventOfCodeRunner will attempt to download the input files for you if the session token is properly
assigned in:
src/main/resources/secrets.json
This session can be found by searching for cookies on the main website https://adventofcode.com/
You can access your cookies on chrome via:
More tools -> Developer Tools -> Application -> Cookies