- GNU + Darwin/Linux enviroment
- Go installed
- Curl / Pandoc installed for scraping (optional)
- Make
.env
file from.env.sample
(optional)
$ make
Available targets:
- install: Install dependencies
- run day=<day_number>: Run the code for a specific day
- test: Run tests
- bench: Run benchmarks
- new day=<day_number>: Create from template
- scrape year=<year> day=<day_number>: Scrape puzzle and input from site
- scrape-all year=<year> day=<day_number>: Scrape from day 1 to specified
- answer year=<year> day=<day_number> part=<part> answer=<answer>: Answer puzzle
Hints: by default <year>,<day> will be set to current EST date