Cleanup day 2 solution

This commit is contained in:
Nettika
2023-12-16 16:02:06 -08:00
parent 72e301c988
commit 89af752a98
5 changed files with 238 additions and 14 deletions

View File

@@ -4,14 +4,13 @@ __author__ = "Nettika <nettika@leaf.ninja>"
__version__ = "1.0.0"
from typing import Callable
from advent_of_code.trebuchet import (
recover_calibration_digits_and_words,
recover_calibration_digits_only,
)
from advent_of_code import cubes, trebuchet
Solver = Callable[[str], str]
solvers: dict[int, tuple[Solver, Solver]] = {
1: (recover_calibration_digits_only, recover_calibration_digits_and_words),
1: (trebuchet.solve_part_1, trebuchet.solve_part_2),
2: (cubes.solve_part_1, cubes.solve_part_2),
}