MCS 275 Spring 2023
Emily Dumas
Reminders and announcements:
depth_first_maze_solution
:
Input: a maze and a path under consideration (partial progress toward solution).
None
, continue the loop.)None
.
depth_first_maze_solution(M,path=None)
:
Arguments:
M
- a Maze
object to be solved (read only)path
- a list of Point2
objectsReturns: Either
Point2
objects (solution extending path
), orNone
(if no solution exists that extends path
)
Class Maze
can save an instance as SVG (.save_svg(fn)
) or PNG
(.save_png(fn)
).
The latter requires a module called Pillow we'll discuss later. Can install with:
python3 -m pip install pillow
Same suggested references as Lecture 10.