Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ubipo/advent-of-code-2022
Advent of Code 2022 🎄
https://github.com/ubipo/advent-of-code-2022
advent-of-code advent-of-code-2022
Last synced: 23 days ago
JSON representation
Advent of Code 2022 🎄
- Host: GitHub
- URL: https://github.com/ubipo/advent-of-code-2022
- Owner: ubipo
- License: mit
- Created: 2022-12-04T21:38:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-28T19:55:00.000Z (about 2 years ago)
- Last Synced: 2025-01-10T21:13:35.897Z (25 days ago)
- Topics: advent-of-code, advent-of-code-2022
- Language: Clojure
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code 2022 🎄
My solutions to help the elves on their 🍋 starfruit ⭐ expedition for [Advent of Code
2022 🎄](https://adventofcode.com/2022).Learning [Clojure](https://clojure.org/) was my own expedition. Don't mind the
wacky clj build setup, I wanted to keep all files at the top level.## Usage
Run the solutions for a given day:
```shell
$ clj -M -m day-01
$ # ... until ...
$ clj -M -m day-25
```## Puzzle Inputs
The puzzle inputs are downloaded automatically using an
[adventofcode.com](https://adventofcode.com/) session cookie stored in the
`session_cookie` file in the project root (not checked into git). The input
files are also cached as `input/day-XX.txt` to avoid downloading them again. The
automatic download can therefore be bypassed by creating the cached input file
manually.## Challenge Structure
Each day's puzzle solution `day-XX.clj` contains a `load-input` function that
loads and parses the day's puzzle input. Additionally it contains a `part-one`
and `part-two` function to solve the two parts of the challenge. Finally, the
`-main` function calls these and prints their results.