AdventOfCode2018 solutions
Day | Name | C++ | Python |
---|---|---|---|
01 | Chronal Calibration | ❌ | ✔️ |
02 | Inventory Management System | ❌ | ✔️ |
03 | No Matter How You Slice It | ❌ | ✔️ |
04 | Repose Record | ❌ | ✔️ |
05 | Alchemical Reduction | ❌ | ✔️ |
06 | Chronal Coordinates | ❌ | ✔️ |
07 | The Sum of Its Parts | ❌ | ✔️ |
To build the code you will need:
Follow the steps:
- from within terminal, go to a directory you wish to contain the code. (e.g.
cd ~/code
) - clone the repo:
git clone https://github.com/tamaroth/advent-of-code-2018.git
- enter the repo:
cd advent-of-code-2018
- create build directory:
mkdir build
- enter build directory:
cd build
- run cmake:
cmake ..
- run make:
make -j
- to run the solutions:
./advent/advent
- to run the tests:
./advent/advent tests
You will need Python 3.7 and then you can simply run:
./setup.sh
to install all necessary packages (on windows just install the missing ones when you run the script).- run
./python/aoc.py test
to run tests - run
./python/aoc.py solve all
to run all solutions - run
./python/aoc.py solve X
to run a solution for the specific day, whereX
is that day's number, e.g.6