Class BaseSolution

java.lang.Object
com.expedient.adventofcodejade.BaseSolution
  • Constructor Details

  • Method Details

    • getInput

      public PuzzleInput getInput(boolean test, boolean partOne)
      Returns either the input or sample input depending on whether this is a test run
      Parameters:
      test - whether this is a test run
      partOne - whether this is for part one
      Returns:
      the corresponding input
    • run

      public void run(boolean test, boolean metrics)
      Runs parts one and two of the solution, and prints the results.
      Parameters:
      test - whether to use test inputs
    • partOne

      public abstract Object partOne(PuzzleInput input)
      Logic for part one of the solution. Must be overridden when implementing the solution.
      Parameters:
      input - the PuzzleInput to be used for the solution
      Returns:
      output of this part of the solution
    • partTwo

      public abstract Object partTwo(PuzzleInput input)
      Logic for part two of the solution. Must be overridden when implementing the solution.
      Parameters:
      input - the PuzzleInput to be used for the solution
      Returns:
      output of this part of the solution