https://github.com/dfacoet/adventofcode
Solutions to Advent of Code (AOC). Managed by a Rust app, solutions in Python, Rust and Haskell.
https://github.com/dfacoet/adventofcode
advent-of-code haskell python rust
Last synced: 6 months ago
JSON representation
Solutions to Advent of Code (AOC). Managed by a Rust app, solutions in Python, Rust and Haskell.
- Host: GitHub
- URL: https://github.com/dfacoet/adventofcode
- Owner: dfacoet
- License: agpl-3.0
- Created: 2024-10-13T22:10:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-23T00:35:31.000Z (6 months ago)
- Last Synced: 2025-07-23T02:31:40.698Z (6 months ago)
- Topics: advent-of-code, haskell, python, rust
- Language: Rust
- Homepage:
- Size: 323 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# adventofcode
Solutions to Advent of Code (AOC). Single repo for solutions in
- Python
- Rust
- Haskell
TODO: Migrate solutions scattered in other repos.
## CLI
This project provides the `aoc` CLI utility.
### Setup
- To build the CLI, just run `make`. This requires the Rust toolchain. The `aoc` executable will be placed in the root directory.
- Puzzle inputs differ by user. To download them, the CLI needs to be authenticated. Get your session cookie (see [here](https://github.com/wimglenn/advent-of-code-wim/issues/1) for ideas on how to do it)
and save it to `./.token`.
### Usage
To download a specific day's puzzle input (e.g. the first day of 2015):
```bash
./aoc get 2015 1
```
This will download the input and save it to `./input/y2015d1.txt`.
To download all puzzle inputs:
```bash
./aoc get --all
```
The download is incremental: if a file is already present, it will not be downloaded again.
For full instructions,
```bash
./aoc -h
```
## Solutions
To start working on a puzzle, use
```
./aoc start [LANG] [YEAR] [DAY]
```
This downloads the puzzle input if necessary, and creates a template following the conventions of
the language subproject.
Supported languages: Python, Rust.