Cleanup day 4 solution

This commit is contained in:
Nettika
2023-12-18 20:29:08 -08:00
parent 3da79d284e
commit 822281aa4e
9 changed files with 124 additions and 316 deletions

View File

@@ -5,7 +5,7 @@ __version__ = "1.0.0"
from typing import Callable
from advent_of_code import cubes, trebuchet, gears
from advent_of_code import cubes, gears, scratchcards, trebuchet
Solver = Callable[[str], int]
@@ -14,4 +14,5 @@ solvers: dict[int, tuple[Solver, Solver]] = {
1: (trebuchet.solve_part_1, trebuchet.solve_part_2),
2: (cubes.solve_part_1, cubes.solve_part_2),
3: (gears.solve_part_1, gears.solve_part_2),
4: (scratchcards.solve_part_1, scratchcards.solve_part_2),
}