Skip to content

Commit 26a66ee

Browse files
authored
Update Puzzle.py
1 parent fa30b67 commit 26a66ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Puzzle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ def solve_puzzle(Board, Source, Destination):
55
"""
66
Finds and returns the path that covers the minimum number of cells of a
77
puzzle traveling from the source to the destination cell.
8+
89
:param Board: Puzzle board as a list of lists. Each list represents a row
910
in the puzzle. Each element is either ‘-’ for an empty cell
1011
(passable) or ‘#’ for an obstacle (impassable)
1112
:param Source: Tuple representing the indices of the starting position
1213
:param Destination: Tuple representing the indices of the goal position
14+
1315
:return: List of tuples representing the indices of each position in the
1416
solution path, plus a string representing the directions taken
1517
"""

0 commit comments

Comments
 (0)