Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 27 days ago
JSON representation

My solutions to Advent of Code 2022 (in Python).

Awesome Lists containing this project

README

        

# Advent of Code 2022

**My solutions to the [Advent of Code 2022](https://adventofcode.com/2022) using Python.**

[![advent-of-code](https://img.shields.io/badge/Advent_of_Code-2022-F80046.svg?style=flat)](https://adventofcode.com)
[![python](https://img.shields.io/badge/Python-3.10-3776AB.svg?style=flat&logo=python&logoColor=FFD23F)](https://www.python.org)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
[![pydocstyle](https://img.shields.io/badge/pydocstyle-enabled-AD4CD3)](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
```