diff --git a/solver.py b/solver.py index 6f5b291..0238ff0 100644 --- a/solver.py +++ b/solver.py @@ -21,6 +21,8 @@ class Solver: MazeDirection.RIGHT: CellWallLabels.LEFT, } + random.seed() + def solve( self, solve_method: Callable[[MazePosition, MazePosition, bool], bool], @@ -60,8 +62,6 @@ class Solver: visitor=self._solver, ) - if enable_random_direction: - random.seed() while True: possible_directions: List[MazeDirection] = [] @@ -117,9 +117,6 @@ class Solver: visitor=self._solver, ) - if enable_random_direction: - random.seed() - while True: possible_directions = [] for direction in MazeDirection: