20 lines
561 B
Python
20 lines
561 B
Python
"My solutions to Advent of Code 2023"
|
|
|
|
__author__ = "Nettika <nettika@leaf.ninja>"
|
|
__version__ = "1.0.0"
|
|
|
|
from typing import Callable
|
|
|
|
from advent_of_code import cubes, gears, network, scratchcards, trebuchet
|
|
|
|
Solver = Callable[[str], int]
|
|
|
|
|
|
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),
|
|
8: (network.solve_part_1, network.solve_part_2),
|
|
}
|