Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

rxedu/adventofcode-2016-clojure

Repository files navigation

Advent of Code Solutions 2016 (in Clojure)

GitHub license CircleCI

My solutions to the Advent of Code 2016 puzzles.

Write your own!

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.

Usage

If you just want to generate solutions you will need Java.

  1. Download adventofcode-2016-1.0.0-standalone.jar from the latest release.

  2. In the same folder, save your input to an input directory (just like the input directory included in the project).

  3. Generate the solutions to solutions with

    $ java -jar adventofcode-2016-1.0.0-standalone.jar
    

    Or compute the solution for a particular day, e.g., day 3, with

    $ java -jar adventofcode-2016-1.0.0-standalone.jar 3
    

Development

Build Environment

Leiningen 2.8.1 on Java 1.8.0_144 OpenJDK 64-Bit Server VM.

Leiningen

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)

License

This software is licensed under the MIT license.

Warranty

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.

About

Advent of Code 2015 in Clojure.

Resources

License

Stars

Watchers

Forks

Packages

No packages published