-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
25 lines (20 loc) · 1000 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Repl.it AOC Python Runner
import runner
# Instructions:
# For each day, create a new python file and a puzzle input file consisting
# of the day number and then the extension .py or .txt.
# So for day 20 you would create "20.py" and "20.txt"
# Don't forget to put a 0 before days 1-9 (so day 5 becomes "05.py") but not on
# any other days. This ensures the days are sorted properly in the files view.
# Each day in the python file, all you have to do is write a part1(prompt)
# method and paste your puzzle input in the text file.
# You can also return a value and it will be printed out.
# The input will be read and passed to your code automatically.
# Add a part2() method when you're ready.
# Look at 01.py for an example
# Update the day in runner.run() each day to change which day is run.
# Your code will be automatically timed.
# For a menu where users can select a day, use this
# max_day is optional, remove it for no limit
# day = runner.get_day(max_day=5)
runner.run(day=6)