Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 873 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 873 Bytes

Advent of Code 2017

50 coding puzzles before Christmas. All of these puzzles were published in December 2017 on adventofcode.com. In this repo you'll find all 50 puzzles along with my solutions in JavaScript.

How to run a solution

On your command line, move to the directory of the puzzle you'd like to run. First, install the dependencies:

npm install

All puzzle solutions can be run with npm start. Pass input to the puzzle as command line argument:

npm start 12345

All examples come with the original input, stored in ./input. This is how to run a puzzle with the original input:

npm start '$(< input)'

There are test cases for all examples given in the puzzle description. You can run them with

npm test

Requirements

Examples might not work with node versions < 8.