My solutions to the Advent of Code 2015 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 create a new branch from
the new-solutions tag with
$ git branch my-solutions new-solutions
$ git checkout my-solutions
or reset your master branch to the new-solutions tag with
$ git reset --hard new-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-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-1.0.0-standalone.jarOr compute the solution for a particular day, e.g., day 3, with
$ java -jar adventofcode-1.0.0-standalone.jar 3
Leiningen 2.5.3 on Java 1.8.0_66 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.