Advent of Code solutions using C99
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.
 
 
 
Evan Burkey ba0b0df515 2015-05 1 month ago
.idea Code cleanup 1 month ago
include 2015-05 1 month ago
lib 2015-03. Add advent_utility and libflint 2 months ago
src 2015-05 1 month ago
.gitignore Code cleanup 1 month ago
.gitmodules 2015-03. Add advent_utility and libflint 2 months ago
CMakeLists.txt 2015-04, add md5 helper function 1 month ago
LICENSE init 3 months ago
README.md 2015-04, add md5 helper function 1 month ago
build.sh 2015-04, add md5 helper function 1 month ago
generator.sh scaffold solution source 2 months ago
get_input.sh Add Linux support, write input functions 2 months ago

README.md

aoc

Advent Of Code solutions using C99.

Building

Be sure to clone the project with its submodules:

git clone --recurse-submodules https://git.fputs.com/fputs/advent

This project relies on several BSD extensions to the stdlib. BSDs should be able to build the project out of the box. Linux users will need libbsd installed. The package is called libbsd-dev on Debian-based systems.

Build the project using Cmake:

mkdir build
cd build
cmake ..
make

The supplied build.sh script does the above for you.

Inputs

Inputs can be generated from get_input.sh. You will need to get your session cookie from the Advent of Code website. The easiest way to do this is to inspect any input page in your browser.

The script can then be run with bash get_input.sh SESSIONCOOKIE, with SESSIONCOOKIE replaced by your unique session cookie's hash.