Advent of Code 2022
Go to file
Oskar Winkels 3ae9fd5a4d
day11 part 2
2022-12-12 02:38:21 +01:00
day1 Remove input files from repo 2022-12-07 13:36:11 +01:00
day2 Remove input files from repo 2022-12-07 13:36:11 +01:00
day3 Remove input files from repo 2022-12-07 13:36:11 +01:00
day4 day4 2022-12-07 14:00:49 +01:00
day5 day5 2022-12-08 13:35:51 +01:00
day6 day6 2022-12-08 16:38:23 +01:00
day7 day7. finally. 2022-12-11 06:03:17 +01:00
day8 day8 2022-12-10 01:08:27 +01:00
day9 Remove debug imports 2022-12-11 02:43:00 +01:00
day10 Remove debug imports 2022-12-11 02:43:00 +01:00
day11 day11 part 2 2022-12-12 02:38:21 +01:00
.gitignore Remove input files from repo 2022-12-07 13:36:11 +01:00
LICENSE Initial commit 2022-12-05 00:05:33 +01:00
Makefile day11 part1 (and part2 if i had infinite RAM) 2022-12-12 02:14:32 +01:00
README.md Fill out README 2022-12-05 02:56:34 +01:00

README.md

Advent of Code 2022

This is my first AoC.

Languages

I'll try to achieve all challenges using only Haskell and Zig.

Running

If

  • the respective toolchains are installed,
  • the respective dependencies are installed,
  • and either
    • an input.txt file is placed in the day's folder, or
    • an AoC session cookie header is placed in $HOME/creds/aoc-cookie (With Cookie: session=...),

all challenges can be easily run from the top directory using

make DAY=<day>

If the session cookie is saved as described above and no input file exists, it will be pulled from the aoc servers for you.

Afterwards, Make will use either GHC's runhaskell or Zig's zig run to run the code (with instant compilation) and feed the input to it on STDIN. The results will be printed to STDOUT to be pasted in the AoC web app.

Licensing

All code licensed under GPLv3, see LICENSE.