This is a repository of my solutions to the 2018 Advent of Code problems. I will be doing these in Pony.
I created some helper code based on my experience with last year's AoC. My solutions to this years problems will probably all use this library.
Each day's solution lives in a directory that is named for the day
(day1, day2, etc). You will need to have
the Pony compiler
and Stable (the Pony dependency
manager installed) in order to build the solutions. To build a
solution, go into its directory and run the following commands:
stable fetch
stable env ponyc
This will create an executable with the same name as the directory that you are in.
The solution executables take two arguments:
- the name of the input file
- the part that you want to run (
1or2)
For example, if you wanted to run part 2 of the day 7 solution on the
file ex7-4.txt you would run the following command:
./day7 ex7-4.txt 2