https://github.com/jhrcook/advent-of-code_2022
My solutions to Advent of Code 2022 (in Python).
https://github.com/jhrcook/advent-of-code_2022
advent-of-code advent-of-code-2022 advent-of-code-2022-python python
Last synced: 9 months ago
JSON representation
My solutions to Advent of Code 2022 (in Python).
- Host: GitHub
- URL: https://github.com/jhrcook/advent-of-code_2022
- Owner: jhrcook
- License: gpl-3.0
- Created: 2022-11-23T14:50:29.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-27T14:19:31.000Z (almost 3 years ago)
- Last Synced: 2025-01-13T11:50:14.974Z (11 months ago)
- Topics: advent-of-code, advent-of-code-2022, advent-of-code-2022-python, python
- Language: Python
- Homepage: https://adventofcode.com/
- Size: 134 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code 2022
**My solutions to the [Advent of Code 2022](https://adventofcode.com/2022) using Python.**
[](https://adventofcode.com)
[](https://www.python.org)
[](https://github.com/pre-commit/pre-commit)
[](https://github.com/psf/black)
[](http://mypy-lang.org/)
[](http://www.pydocstyle.org/en/stable/)
| Day | Code | Stars |
| ---:| ------------------------------------------------------------------ | ----- |
| 1 | [advent_of_code/puzzles/day01.py](advent_of_code/puzzles/day01.py) | ⭐️⭐️ |
| 2 | [advent_of_code/puzzles/day02.py](advent_of_code/puzzles/day02.py) | ⭐️⭐️ |
| 3 | [advent_of_code/puzzles/day03.py](advent_of_code/puzzles/day03.py) | ⭐️⭐️ |
| 4 | [advent_of_code/puzzles/day04.py](advent_of_code/puzzles/day04.py) | ⭐️⭐️ |
| 5 | [advent_of_code/puzzles/day05.py](advent_of_code/puzzles/day05.py) | ⭐️⭐️ |
| 6 | [advent_of_code/puzzles/day06.py](advent_of_code/puzzles/day06.py) | ⭐️⭐️ |
| 7 | [advent_of_code/puzzles/day07.py](advent_of_code/puzzles/day07.py) | ⭐️⭐️ |
| 8 | [advent_of_code/puzzles/day08.py](advent_of_code/puzzles/day08.py) | ⭐️⭐️ |
| 9 | [advent_of_code/puzzles/day09.py](advent_of_code/puzzles/day09.py) | ⭐️⭐️ |
| 10 | [advent_of_code/puzzles/day10.py](advent_of_code/puzzles/day10.py) | ⭐️⭐️ |
| 11 | [advent_of_code/puzzles/day11.py](advent_of_code/puzzles/day11.py) | ⭐️ |
| 12 | [advent_of_code/puzzles/day12.py](advent_of_code/puzzles/day12.py) | ⭐️⭐️ |
| 13 | [advent_of_code/puzzles/day13.py](advent_of_code/puzzles/day13.py) | ⭐️⭐️ |
| 14 | [advent_of_code/puzzles/day14.py](advent_of_code/puzzles/day14.py) | ⭐️⭐️ |
| 15 | [advent_of_code/puzzles/day15.py](advent_of_code/puzzles/day15.py) | ⭐️⭐️ |
| 16 | [advent_of_code/puzzles/day16.py](advent_of_code/puzzles/day16.py) | ⭐️⭐️ |
## Setup
Create a python virtual environment and activate it before continuing.
```bash
python3 -m venv .env
source .env/bin/activate
```
This code can be installed as an editable package using pip
```bash
pip install -e .
```
or flit (if actively developing)
```bash
flit install -s
```
## Run the code
The puzzles can be run using the command `aoc`.
Providing a day will result in the execution of just that day's puzzles.
```bash
source .env/bin/activate
# To run all puzzles:
aoc
# To run just day 1's puzzles:
aoc --day 1
```