29 lines
950 B
Markdown
29 lines
950 B
Markdown
# aoc_template
|
|
|
|
Template for yearly AoC-Repositories
|
|
|
|
# Usage
|
|
|
|
- Clone repository (or use as template in gitea)
|
|
- Run `pip install -r requirements.txt`
|
|
- Update main.py and start_day.py: set YEAR (near the top) to the respective year
|
|
- Create a file named ".session" next to your main.py containing the contents of your aoc-session cookie
|
|
|
|
On a given day, just call `./start_day.py -d <day_of_month>`
|
|
|
|
# Not using PyCharm?
|
|
|
|
Just comment out the call() to CHARMS near the end of start_day.py
|
|
|
|
# Want to add AoC-Tiles?
|
|
|
|
Author: https://github.com/LiquidFun/aoc_tiles
|
|
|
|
- Run `pre-commit install --hook-type post-commit`
|
|
- In .pre-commit-config.yaml change the --overwrite-year option as needed
|
|
- Optional: Copy your .session file to session.cookie
|
|
- For more options see: https://github.com/LiquidFun/aoc_tiles/blob/main/aoc_tiles/config.py
|
|
|
|
Tiles will be added to this README between the following lines:
|
|
<!-- AOC TILES BEGIN -->
|
|
<!-- AOC TILES END --> |