Template
1
0
Template for yearly AoC-Repositories
Go to file Use this template
2023-12-01 17:30:55 +01:00
.gitignore gitignore pycharm workspace 2023-11-12 19:29:07 +01:00
LICENSE Initial commit 2023-11-12 18:17:03 +00:00
main.py Minimum template for a new AoC year 2023-11-12 19:27:39 +01:00
README.md Minimum template for a new AoC year 2023-11-12 19:27:39 +01:00
requirements.txt Minimum template for a new AoC year 2023-11-12 19:27:39 +01:00
skel_day.py Minimum template for a new AoC year 2023-11-12 19:27:39 +01:00
start_day.py don't print a line every second while waiting for hours, just count down the last 10-70 seconds 2023-12-01 17:30:55 +01:00

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