Skip to content

terrylockett/advent-of-code

Repository files navigation

Advent of Code

The Most beautiful kotlin and java code ever written for AOC

Cool pic of AOC holding a piece of paper

Guaranteed I will finish all days.

Configuration

JDK 17+

Set AOC session token in your ~/.gradle/gradle.properties to download the puzzle input.

AOC_TOKEN=abc123
How to get session token.
  1. Authenticate at https://adventofcode.com.
  2. Open Web dev tools(cmd + opt + i) -> Storage tab
  3. Copy session value

Usage

Build

./gradlew build

Run

./gradlew 2023:day01:run

Lint

./gradlew 2023:day01:spotlessApply

Test

./gradlew 2023:day01test

Benchmark

./gradlew 2024:day03:jmh

Create new Module

./gradlew newModule -PmoduleName=2023:day02 -Plang=kotlin
valid langs = [kotlin | java]

Download puzzle input

./gradlew 2023:day01:downloadPuzzleInput

Clean puzzle input

./gradlew 2023:day01:cleanPuzzleInput
Note: clean does NOT depend on this.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy