lots of cleanup
This commit is contained in:
parent
7d0d3e504e
commit
0385cbd62e
26 changed files with 337 additions and 417 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import sys
|
||||
from importlib import import_module
|
||||
|
||||
from advent.common import utils
|
||||
from advent.common import input
|
||||
from advent.days.template import Day, ResultType, is_day
|
||||
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ def get_day(day_num: int) -> Day:
|
|||
|
||||
|
||||
def run(day: Day, part: int) -> None:
|
||||
data = utils.read_data(day.day_num, 'input.txt')
|
||||
data = input.read_lines(day.day_num, 'input.txt')
|
||||
match part:
|
||||
case 1: output(day.day_num, 1, day.part1(data))
|
||||
case 2: output(day.day_num, 2, day.part2(data))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue