My solutions to the Advent of Code 2016 puzzles.
Solutions will be posted as I write them, but you can use this project to make your own.
Simply clone or fork this,
then reset your master branch to the makenew-solutions tag with
$ git reset --hard makenew-solutions
Save your input to input/01.txt, input/02.txt, etc.
Then, write your solution and tests for each day
in the corresponding .clj files.
See Development below for more.
If you just want to generate solutions you will need Java.
-
Download
adventofcode-2016-1.0.0-standalone.jarfrom the latest release. -
In the same folder, save your input to an
inputdirectory (just like theinputdirectory included in the project). -
Generate the solutions to
solutionswith$ java -jar adventofcode-2016-1.0.0-standalone.jarOr compute the solution for a particular day, e.g., day 3, with
$ java -jar adventofcode-2016-1.0.0-standalone.jar 3
Leiningen 2.8.1 on Java 1.8.0_144 OpenJDK 64-Bit Server VM.
Generate, display, and save all solutions with
$ lein run
Compute the solutions for a single day, e.g., day 1, with
$ lein run 1
or in the REPL ($ lein repl) with
(solve-day 1)This software is licensed under the MIT license.
This work is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.