

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Draw Lines
incomplete
2: Cell
incomplete
3: Draw Move
incomplete
This lesson's interactive features are locked, please to keep using them
Next, we need a way to draw a path between 2 cells.
def draw_move(self, to_cell: "Cell", undo: bool = False) -> None:
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.