Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonasrenault/advent
Repository for my code for Advent of code
https://github.com/jonasrenault/advent
advent-of-code advent-of-code-2020 advent-of-code-2021 advent-of-code-2022 advent-of-code-2023 advent-of-code-python python
Last synced: 25 days ago
JSON representation
Repository for my code for Advent of code
- Host: GitHub
- URL: https://github.com/jonasrenault/advent
- Owner: jonasrenault
- Created: 2024-02-29T10:58:46.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-02T15:16:30.000Z (7 months ago)
- Last Synced: 2024-04-02T16:35:39.928Z (7 months ago)
- Topics: advent-of-code, advent-of-code-2020, advent-of-code-2021, advent-of-code-2022, advent-of-code-2023, advent-of-code-python, python
- Language: Python
- Homepage:
- Size: 135 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code
Repository of my code for [Advent of Code](https://adventofcode.com/)
## Install
Install project with its dependencies with [poetry](https://python-poetry.org/):
```console
poetry install
```## Session
To get the code to work with your puzzle input, you need to be logged in using your session cookie. Log in to the [Advent of Code](https://adventofcode.com/) website and save your session cookie in a file called `.secret-session-cookie` in the project's root directory.
## Run
Each day's problem is solved in its own python module in a package corresponding to the year in the [advent](./advent/) directory. To run a solution, run
```console
poetry run python advent/advent2023/day01.py
```## Template generation
To generate a blank template for a new day, a template generator can be used with
```console
poetry run python advent/utils/templates.py -y 2023 -d 1
```where the `-y` option specifies the year and `-d` specifies the day to generate a template for.