Files
advent-of-code-2023/advent_of_code/__init__.py
2023-12-20 20:58:01 -08:00

21 lines
617 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, oasis, 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),
9: (oasis.solve_part_1, oasis.solve_part_2),
}