A collection of solutions for the Advent of Code 2015 programming puzzles. I'm going to attempt these in Picat and maybe other languages if the mood is right.
I didn't solve these puzzles in 2015 so am in no rush to complete them every day, but feel free to check out my 2020 and 2021 repos which were mostly done in Haskell.
I'd recommend the Advent of Code to anyone -- they're really fun and interesting puzzles, and I've learned a lot from doing them.
- 2019 (unfinished, will resume later...)
- 2020 (mostly Haskell, one or two in Rust, Python and zz)
- 2021 (all Haskell except day 24 in Picat)
- 2022 (mostly Nim with a couple of Picat programs)
- 2023 (mostly Picat with a couple of Nim programs)
Current code stats with cloc
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code
───────────────────────────────────────────────────────────────────────────────
Picat 40 2647 303 115 2229
Plain Text 28 3083 4 0 3079
Markdown 21 659 248 0 411
Nim 2 37 8 0 29
License 1 21 5 0 16
gitignore 1 4 0 0 4
───────────────────────────────────────────────────────────────────────────────
Total 93 6451 568 115 5768
───────────────────────────────────────────────────────────────────────────────
Processed 216668 bytes, 0.217 megabytes (SI)
───────────────────────────────────────────────────────────────────────────────
- Day 1: Not Quite Lisp
- Day 2: I Was Told There Would Be No Math
- Day 3: Perfectly Spherical Houses in a Vacuum
- Day 4: The Ideal Stocking Stuffer
- Day 5: Doesn't He Have Intern-Elves For This?
- Day 6: Probably a Fire Hazard
- Day 7: Some Assembly Required
- Day 8: Matchsticks
- Day 9: All in a Single Night
- Day 10: Elves Look, Elves Say
- Day 11: Corporate Policy
- Day 12: JSAbacusFramework.io
- Day 13: Knights of the Dinner Table
- Day 14: Reindeer Olympics
- Day 15: Science for Hungry People
- Day 16: Aunt Sue
- Day 17: No Such Thing as Too Much
- Day 18: Like a GIF For Your Yard
- Day 19: Medicine for Rudolph
- Day 20: Infinite Elves and Infinite Houses
- Day 21: RPG Simulator 20XX
- Day 22: ?
- Day 23: ?
- Day 24: ?
- Day 25: ?