Skip to content

Commit

Permalink
fix: change window size, colors of solving line
Browse files Browse the repository at this point in the history
  • Loading branch information
ellielle committed Dec 15, 2023
1 parent c4afbf2 commit 88af808
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ def __init__(self, width, height):
self.__root.protocol("WM_DELETE_WINDOW", self.close)
self.width = width
self.height = height
self.title = self.__root
self.canvas = Canvas(
master=self.__root, width=self.width, height=self.height, bg="white"
)
Expand Down Expand Up @@ -61,11 +60,10 @@ class Cell:
undo_colors = [
"cyan",
"magenta",
"pink",
"blue",
"orange",
"lime",
"deeppink",
"saddlebrown",
"hotpink",
"deepskyblue",
"gold",
]
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@


def main():
win = Window(800, 600)
maze = Maze(20, 20, 12, 16, 20, 20, win)
win = Window(550, 550)
maze = Maze(25, 25, 20, 20, 25, 25, win)
maze.solve()
win.wait_for_close()

Expand Down
2 changes: 1 addition & 1 deletion maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(
self._cells = [[] for _ in range(self.num_cols)]
self.cell_size_x = cell_size_x
self.cell_size_y = cell_size_y
self.__sleep_constant = 0.00
self.__sleep_constant = 0.03
self._create_cells()
if seed:
random.seed(seed)
Expand Down

0 comments on commit 88af808

Please sign in to comment.