Code Monkey home page Code Monkey logo

advent-of-code's Introduction

Advent of Code solutions in Clojure

If you're reading this you probably either want to see my solutions -- they're arranged by year and then day at src/aoc -- or you want to run them. Maybe you're me from the future. Entry points for running solutions and tests are in the user namespace, you probably want run-tests, run, or rrr (do all of refresh, run tests, and then run).

run will download input (exactly once ever for each puzzle) and submit solutions (or check them against a local cache). When it does make requests it looks for a .session file.

Solutions are functions of no arguments called part-1 or part-2 in the relevant namespace. run will also run functions called scrap for the purpose of checking intermediate results without submitting anything.

Arguments to run (and run-tests and rrr) are integers: year, day, part; all optional.

  • (run) runs everything
  • (run 2021) runs every day in 2021
  • (run 2015 19) runs 2015 day 19
  • (run 2017 1 2) runs 2017 day 1 part 2
  • (run 24) runs day 24 in whatever user/default-year currently is

(log) spits the output of (run) to results.log.

advent-of-code's People

Contributors

callum-oakley avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.