adventofcode2026
Advent of Code 2026
shards install
cp .env.example .env # gitignored, see #env below.
crystal run src/main.cr -- new 2 # scaffold src/days/day02.cr + spec
crystal run src/main.cr -- fetch 2 # save input to inputs/02.txt (gitignored)
crystal run src/main.cr -- run 2 # both parts
crystal run src/main.cr -- run 2 -p 1 -i other.txt
crystal spec # examples from the puzzle text live in spec/days
.env
Real environment variables take precedence over .env.
AOC_SESSION: log in to adventofcode.com, open devtools, then Application (Chrome) or Storage (Firefox) > Cookies >https://adventofcode.comand copy thesessionvalue.AOC_USER_AGENT: optional. AoC asks automated tools to identify themselves with contact details, e.g.github.com/<you>/adventofcode2026 by <email>.
Repository
adventofcode2026
Owner
Statistic
- 0
- 0
- 0
- 0
- 2
- 25 minutes ago
- December 1, 2026
License
Links
Synced at
Tue, 01 Dec 2026 22:36:59 GMT
Languages