Tools for solving Advent of Code puzzles (and solutions to some of them).
- Clone project
git clone git@github.com:/Primetalk/advent-tools.git
cd advent-tools
- Build
mill advent.compile
A new build script is added to the project - build.gradle.kts
.
./gradlew :advent:compileScala
- Generate IntelliJ Idea project
mill mill.scalalib.GenIdea/idea
Idea can import the project from gradle script.
- REPL
mill -i advent.repl
- Loading daily input
curl https://adventofcode.com/2019/day/2/input -o advent/src/main/resources/org/primetalk/advent2019/day2.txt
Unfortunately, this doesn't work. It requires authentication.