2026-rff_mp/MusinAA/task2/strategyObjects/DFS.py

9 lines
374 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from task2.strategyObjects.pathFindingStrategy import PathFindingStrategy
from task2.mazeObjects.maze import Maze
from task2.mazeObjects.cell import Cell
class DFS(PathFindingStrategy):
"""Поиск в глубину быстрый, но не обязательно кратчайший."""
def findPath(self, maze: Maze, start: Cell, exit: Cell):
...