https://github.com/kucera-lukas/aoc2022
My solutions to Advent of Code 2022
https://github.com/kucera-lukas/aoc2022
advent-of-code advent-of-code-2022 advent-of-code-2022-python algorithms data-structures pre-commit pytest python
Last synced: about 2 months ago
JSON representation
My solutions to Advent of Code 2022
- Host: GitHub
- URL: https://github.com/kucera-lukas/aoc2022
- Owner: kucera-lukas
- License: mit
- Created: 2022-11-29T22:43:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-22T20:50:08.000Z (2 months ago)
- Last Synced: 2025-09-22T22:26:08.233Z (2 months ago)
- Topics: advent-of-code, advent-of-code-2022, advent-of-code-2022-python, algorithms, data-structures, pre-commit, pytest, python
- Language: Python
- Homepage: https://adventofcode.com/2022
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: support/setup.cfg
Awesome Lists containing this project
README
# aoc2022
[](https://github.com/kucera-lukas/aoc2022/actions/workflows/ci.yml)
[](https://results.pre-commit.ci/latest/github/kucera-lukas/aoc2022/main)
My solutions to [Advent of Code 2022](https://adventofcode.com/2022)
## Installation
1. Setup python environment
```shell
# create venv
virtualenv venv
# install requirements
pip install -r requirements.txt
```
2. Copy and fill environment variables into .env file
```shell
cp .env.sample .env
```
### Dependencies
I'm using https://github.com/direnv/direnv to automatically drop me into the
Python virtual environment
## Usage
- solve each day in the correct directory
- `cp -r day00 $DAY` - create directory for a new problem
- `aoc-download-input` - download the input into `$DAY/input.txt`
- implement solution in the `compute` function
- `pytest part1.py` - run part1 tests
- `python part1.py input.txt` - run the part1 script directly
- `python part1.py input.txt | aoc-submit --part 1` - submit answer for part1
- `cp part1.py part2.py` - copy part1 script into part2
## Contributing
```shell
pre-commit install
```
## Credits
Inspired by https://github.com/anthonywritescode/aoc2022 and https://youtu.be/CZZLCeRya74
## License
Developed under the [MIT](https://github.com/kucera-lukas/aoc2022/blob/master/LICENSE) license.