An open API service indexing awesome lists of open source software.

https://github.com/terrylockett/advent-of-code

Best code ever written for AOC
https://github.com/terrylockett/advent-of-code

advent-of-code advent-of-code-2024 advent-of-code-2024-kotlin advent-of-code-java

Last synced: 28 days ago
JSON representation

Best code ever written for AOC

Awesome Lists containing this project

README

          

# Advent of Code

The Most beautiful kotlin and java code ever written for [AOC](https://adventofcode.com)

Cool pic of AOC holding a piece of paper

Guaranteed I will finish all days.

## Configuration
`JDK 11+`

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](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.