2022-12-02 06:53:34 -08:00
2022-03-07 13:32:18 -08:00
2022-12-02 06:53:34 -08:00
2022-03-08 08:25:19 -08:00
2022-12-02 06:53:34 -08:00
2022-12-02 06:53:34 -08:00
2021-12-21 07:58:03 -08:00
2021-12-10 11:19:48 -08:00
2022-12-02 06:53:34 -08:00
2022-12-02 06:53:34 -08:00
2022-12-02 06:53:34 -08:00
2021-07-14 13:50:33 -07:00

aoc

Advent Of Code solutions using C99. Builds and runs on macOS, Linux, and OpenBSD.

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. OpenBSD and macOS users 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.

Usage

./advent $YEAR $DAY

For example, ./advent 15 1 will run Day 01 from the 2015 problems

Description
Advent of Code solutions using C99
Readme 197 KiB
Languages
C 95.7%
Shell 2.4%
CMake 1.7%
Makefile 0.2%