|
3 months ago | |
---|---|---|
day01 | 3 months ago | |
day02 | 3 months ago | |
day03 | 3 months ago | |
day04 | 3 months ago | |
day05 | 3 months ago | |
readline | 3 months ago | |
.gitignore | 3 months ago | |
Makefile | 3 months ago | |
README.md | 3 months ago | |
aoc_test.go | 3 months ago | |
go.mod | 3 months ago | |
main.go | 3 months ago |
The Advent Of Code is a language-agnostic programming challenge that is held every year on December. Everyday a new challenge, in two parts, is presented. You'll be given an input (usually everyone has a different one), and each one of the two part will ask you to use this input in a similar manner, though the second one is a bit harder.
I will also upload my input, in case there is an edge case I didn't notice and didn't encounter with mine, for fairness, and demonstration purpose (I know they work).
Yes! But I use a special feature, plugins, that are currently (10/12/2020) only supported on Linux/FreeBSD/MacOS. You can follow the issue here. If you're curious, this feature makes it so that you can simili import go packages at runtime. (Hurray for dynamic linking)
You need the go compiler, and make as I use some makefile magic.
You can just git clone
this repo, and use it, as it uses go module.
make run
will compile if needed and run every daysmake test
will compile if needed and run all tests. Tests basically consist of comparing the output the program gave vs what the expected output was.make $(DAYS)
will compile if needed and run provided day. Exemple: make 01
or make 01 03