Class AdventOfCode

java.lang.Object
com.expedient.adventofcodejade.AdventOfCode

public class AdventOfCode extends Object
Advent of Code solution runner
  • Constructor Details

    • AdventOfCode

      public AdventOfCode()
  • Method Details

    • main

      public static void main(String[] args)
      Entry point for application
      Parameters:
      args - command line arguments for application
      • --help - prints help
      • --test - uses sample input
      • --all - prints and runs all solutions
      • --year=x - prints and runs solutions for year x
      • --day=x - prints and runs solution for day x
    • runForDay

      public static void runForDay(String yearArg, String dayArg, boolean test, SolutionLoader loader, boolean metrics)
      Parse out the selected day from command line args and run it
      Parameters:
      dayArg - selected day
      test - whether to use sample input
    • runLatestSolution

      public static void runLatestSolution(boolean test, SolutionLoader loader, boolean metrics)
      Get all solutions and only run the latest one
      Parameters:
      test - whether to use sample input
    • runAllSolutionsForYear

      public static void runAllSolutionsForYear(int year, boolean test, SolutionLoader loader, boolean metrics)
    • runAllSolutionsForYear

      public static void runAllSolutionsForYear(String yearInput, boolean test, SolutionLoader loader, boolean metrics)
    • runAllSolutions

      public static void runAllSolutions(boolean test, SolutionLoader loader, boolean metrics)
      Iterate over all solutions and print the solution for each, along with the header
      Parameters:
      test - whether to use sample input