Solutions for Advent of Code puzzles, from various years.
- Python (primary) – CPython 3.14 by default, PyPy when speed matters
- Rust (2024)
- Wolfram Language (occasional, as WolframScript files for portability)
# Scaffold today's puzzle (uses the aoc-copier-template, downloads description and input)
mise run new
mise run new 2025 3 # a past puzzle: year, then day
# Run today's solution on input.txt
mise run aoc
mise run aoc 3 # day 3 of the current year
mise run aoc 3 2025 # day, then year (note: reversed w.r.t. `new`)
# Run on the example files (example*.txt)
mise run aot
mise run aot 3 2025Or directly:
cd 2025/01
python 1.py input.txt
uv run --python pypy@3.11 1.py input.txt # with PyPyYYYY/
DD/
N.py # Python solution
N.wls # Wolfram (optional)
log.md # Solving log, written by hand (2026+)
readme.md # Puzzle description (auto-downloaded, gitignored)
input.txt # Puzzle input (auto-downloaded, gitignored)
example_data.txt # Sample input (auto-downloaded; older days: example.txt)
python/ # 2024 structure
rust/ # 2024 structure
Requires mise and uv.
Python comes from uv via .python-version; mise creates and activates .venv.
Run mise trust once, then mise run setup installs Copier and the download
dependencies into .venv (mise run new also does this automatically).
Downloads need the AoC session cookie, either in ~/.config/aocd/token or in
the AOC_SESSION environment variable.
Input files (input.txt) are gitignored per AoC copyright policy.