Compare commits

...

2 Commits

Author SHA1 Message Date
9b11bec788 the year is 2025 ... 2025-11-30 12:18:10 +01:00
448133da2c aoc2025 init 2025-11-30 12:09:56 +01:00
4 changed files with 6 additions and 30 deletions

View File

@ -12,6 +12,6 @@ repos:
args:
- --auto-add-tiles-to-git=add
- --contrast-improvement-type=dark
- --overwrite-year=2024
- --overwrite-year=2025
# - --language-sorting=py,jl,kt,rs
# - --exclude-patterns=2021/*/*.apl,2021/*/*.py,2021/*/*.cpp

View File

@ -1,29 +1,5 @@
# aoc_template
# Advent Of Code 2025
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 -->

View File

@ -5,7 +5,7 @@ import argparse
import importlib
import os
YEAR = 2018
YEAR = 2025
TIMEIT_NUMBER = 50
argument_parser = argparse.ArgumentParser()

4
start_day.py Normal file → Executable file
View File

@ -9,7 +9,7 @@ from tools.tools import human_readable_time_from_delta
import webbrowser
YEAR = 2018
YEAR = 2025
CHARMS = {
'Linux': '/usr/local/bin/charm',
'Windows': r'C:\Users\pennywise\AppData\Local\JetBrains\Toolbox\scripts\pycharm.cmd'
@ -21,7 +21,7 @@ args = arg_parser.parse_args()
DAY = args.day or datetime.now().day
if YEAR < 2015 or not 1 <= DAY <= 25:
if YEAR < 2015 or not 1 <= DAY <= 12:
print("Invalid year or day for year: %d, day: %d" % (YEAR, DAY))
exit()