Next, we need a way to draw a path between 2 cells.
def draw_move(self, to_cell, undo=False):
undo flag is not set, the line you draw should be "red". Otherwise, make it "gray". This way as we're drawing a path through the maze, it will be a nice red color, but if we need to backtrack, it will be gray.Login to Complete
Login to view solution