paut.aoc

package paut.aoc

Type members

Classlikes

trait Example[A]
case class PrimaryEx[A](solution: A) extends Example[A]
abstract class Problem[A](val year: Int, val day: Int, val part: Int)(val example: Example[A]) extends App

An abstract class for solving a problem from Advent of Code.

An abstract class for solving a problem from Advent of Code.

Value parameters:
day

the day of the year the problem is from

expectedExampleSolution

the expected solution for the example input

year

the year the problem is from

case class Result(year: Int, day: Int, part: Int, solution: String, time: Double, timestamp: LocalDateTime, submitted: Boolean)

A class for representing the result of solving, or an attempt at solving, a problem from Advent of Code.

A class for representing the result of solving, or an attempt at solving, a problem from Advent of Code.

Value parameters:
day

the day in december which the problem is from

part

one or two

solution

a solution to the problem

submitted

whether the solution was submitted to and verified on the Advent of Code website

time

the time it took to solve the problem

timestamp

the time the problem was solved

year

the year which the problem is from

Companion:
object
object Result
Companion:
class
case class SecondaryEx[A](solution: A) extends Example[A]
case object Skip extends Example[Any]
object Testing
case class TimedEval[A](duration: Double, result: A)

A simple wrapper class that includes the result of an evaluation and the time (in seconds) it took to evaluate it

A simple wrapper class that includes the result of an evaluation and the time (in seconds) it took to evaluate it

Value parameters:
result

The final evaluation

time

Time elapsed while evaluating, in seconds

Companion:
object
object TimedEval
Companion:
class