My solutions to the Advent of Code 2018 problems.
This repository organizes the solutions by day. I have tried to create and retain branches that correspond to the specific problems and include the problem in the PR for that day. The solutions have tests along side of them to provide an easy to run way of verifying results.
- Install NodeJS. The recommended version for this project is
10.11.0
.- After installing, if you run
which node
in your terminal, it should print something like/usr/local/bin/node
. If it prints nothing, there may be an issue with your Node install. First restart your terminal. If that still doesn't work, find out where on your system Node installed to, and then check your$PATH
variable (echo $PATH
) to see whether the Node install location is listed.
- After installing, if you run
- Install Git.
- As above,
which git
should print something like/usr/local/bin/git
. If it doesn't, you can follow the same troubleshooting steps as for NodeJS.
- As above,
- Open your terminal and run the following commands:
git clone https://github.com/mpaarating/aoc2018
- If this fails with an error message, have a look at this page.
cd aoc2018
npm install
- Run
npm test
to run the test suite. The project uses the Jest testing library.
Please let me know if there are issues when running the project.