Cleanup day 2 solution
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
Reference in New Issue
Block a user