Solutions for the AoC 2020 puzzles, written in Python.
Day | Title | Solution |
---|---|---|
1 | 🛠️ Report Repair | day1.py ⭐⭐ |
2 | 🔑 Password Philosophy | day2.py ⭐⭐ |
3 | 🛷 Toboggan Trajectory | day3.py ⭐⭐ |
4 | 🛂 Passport Processing | day4.py ⭐⭐ |
5 | 🎫 Binary Boarding | day5.py ⭐⭐ |
6 | 🛃 Custom Customs | day6.py ⭐⭐ |
7 | 👜 Handy Haversacks | day7.py ⭐⭐ |
8 | 🎮 Handheld Halting | day8.py ⭐⭐ |
9 | ❌ Encoding Error | day9.py ⭐⭐ |
10 | 🔌 Adapter Array | day10.py ⭐⭐ |
11 | 🪑 Seating System | day11.py ⭐⭐ |
12 | ⛈ Rain Risk | day12.py ⭐⭐ |
13 | 🚌 Shuttle Search | day13.py ⭐⭐ |
14 | 🚢 Docking Data | day14.py ⭐⭐ |
15 | 🧝 Rambunctious Recitation | day15.py ⭐⭐ |
16 | 🚆 Ticket Translation | day16.py ⭐⭐ |
17 | 📦 Conway Cubes | day17.py ⭐⭐ |
18 | 📔 Operation Order | day18.py ⭐⭐ |
19 | ✉️ Monster Messages | day19.py ⭐⭐ |
You can run all (or a subset) the solutions with the aoc
runner script
provided by advent-of-code-data.
$ cat ~/.config/aocd/tokens.json # create this file with some auth tokens
{
"github": "53616c7465645f5f0775...",
"google": "53616c7465645f5f7238...",
"reddit": "53616c7465645f5ff7c8...",
"twitter": "53616c7465645f5fa524..."
}
$ pip install . --editable # install the aoc runner
$ aoc --years 2020 --days 1 2 # run it!