https://github.com/mattiasmts/advent2022
AoC 2022, prepare to get pythonized
https://github.com/mattiasmts/advent2022
aoc2022 aoc2022-in-python
Last synced: 5 months ago
JSON representation
AoC 2022, prepare to get pythonized
- Host: GitHub
- URL: https://github.com/mattiasmts/advent2022
- Owner: MattiasMTS
- Created: 2022-11-30T20:17:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-10T19:43:34.000Z (almost 3 years ago)
- Last Synced: 2025-03-18T05:33:16.346Z (9 months ago)
- Topics: aoc2022, aoc2022-in-python
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🎄 advent2022 🎄
https://adventofcode.com/2022
AoC 2022, prepare to get pythonized
# 🛠️ To get started 🛠️
Poetic justice - `poetry`. Run:
```shell
poetry shell && poetry install
```
or if you want a lot of damage:
```shell
pip install -r requirements.txt
```
The template is inspired by anthonywritescode's template! Check it out!
Day 00 is the template structure for remaining succeeding days.
Run `cp -r day00 dayNN`, where NN=day, to easily get started with a new day.
We are also utilizing a session cookie for the AoC website to easily fetch
inputs and submit code using the `aoc-` commands from the `./support/` package.
Useful commands (when you are in a dayNN folder):
- `pytest ` - to test the given input/expected.
- `aoc-download-input` - fetch the input for that day into your input.txt file.
- `aoc-submit --part ` - combine this with the pipe to echo the answer and submit it!
- `python3 part1 input.txt` - to get the output from your implementation and see how fast it was!
- `python3 part1 input.txt | aoc-submit --part 1` - example submit command.