You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Cléo Rebert d5f73b2099 day05 3 months ago
day01 Initial commit 3 months ago
day02 Initial commit 3 months ago
day03 Initial commit 3 months ago
day04 day04 + testing 3 months ago
day05 day05 3 months ago
readline day04 + testing 3 months ago
.gitignore Initial commit 3 months ago
Makefile day05 3 months ago
README.md day04 + testing 3 months ago
aoc_test.go day05 3 months ago
go.mod Initial commit 3 months ago
main.go day04 + testing 3 months ago

README.md

Advent Of Code 2020

What is the Advent Of Code?

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).

Why doesn't it work on Windows. Isn't Go a crossplatform language?

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)

What will I need to run it?

You need the go compiler, and make as I use some makefile magic.

How to use

You can just git clone this repo, and use it, as it uses go module.

  • make run will compile if needed and run every days
  • make 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