Restructure solver modules with classes and unittest suites
This commit is contained in:
12
puzzles/_solver.py
Normal file
12
puzzles/_solver.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class Solver(ABC):
|
||||
@abstractmethod
|
||||
def __init__(self, puzzle_input: str): ...
|
||||
|
||||
@abstractmethod
|
||||
def solve_p1(self) -> int: ...
|
||||
|
||||
@abstractmethod
|
||||
def solve_p2(self) -> int: ...
|
Reference in New Issue
Block a user