Skip to content
edoardob90Public

About

Advent of Code solutions (2015-2025) in Python, Rust, and Wolfram Language

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 🎅🏻🎄👨🏻‍💻

Solutions for Advent of Code puzzles, from various years.

Languages

  • Python (primary) – CPython 3.14 by default, PyPy when speed matters
  • Rust (2024)
  • Wolfram Language (occasional, as WolframScript files for portability)

Usage

# 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 2025

Or directly:

cd 2025/01
python 1.py input.txt
uv run --python pypy@3.11 1.py input.txt   # with PyPy

Structure

YYYY/
  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

Setup

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.

About

Advent of Code solutions (2015-2025) in Python, Rust, and Wolfram Language

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages