mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-04-28 16:04:35 +02:00
need to add the color
This commit is contained in:
+1
-4
@@ -136,7 +136,6 @@ class MazeMLX:
|
|||||||
(actual[1]) * cell_size + cell_size - 12 + margin,
|
(actual[1]) * cell_size + cell_size - 12 + margin,
|
||||||
)
|
)
|
||||||
self.put_block(ul, dr)
|
self.put_block(ul, dr)
|
||||||
# self.redraw_image()
|
|
||||||
x0 = actual[0] * cell_size + margin + 12
|
x0 = actual[0] * cell_size + margin + 12
|
||||||
y0 = actual[1] * cell_size + margin + 12
|
y0 = actual[1] * cell_size + margin + 12
|
||||||
x1 = actual[0] * cell_size + cell_size + margin - 12
|
x1 = actual[0] * cell_size + cell_size + margin - 12
|
||||||
@@ -164,7 +163,6 @@ class MazeMLX:
|
|||||||
(actual[1]) * cell_size + cell_size - 12 + margin,
|
(actual[1]) * cell_size + cell_size - 12 + margin,
|
||||||
)
|
)
|
||||||
self.put_block(ul, dr)
|
self.put_block(ul, dr)
|
||||||
# self.redraw_image()
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def draw_ft(self, maze: np.ndarray):
|
def draw_ft(self, maze: np.ndarray):
|
||||||
@@ -217,7 +215,7 @@ class MazeMLX:
|
|||||||
if self.path_printer and self.print_path:
|
if self.path_printer and self.print_path:
|
||||||
self.render_path()
|
self.render_path()
|
||||||
else:
|
else:
|
||||||
self.update_maze(amazing.maze.get_maze())
|
# self.update_maze(amazing.maze.get_maze())
|
||||||
self.draw_ft(amazing.maze.get_maze())
|
self.draw_ft(amazing.maze.get_maze())
|
||||||
self.redraw_image()
|
self.redraw_image()
|
||||||
|
|
||||||
@@ -248,7 +246,6 @@ class MazeMLX:
|
|||||||
next(self.generator)
|
next(self.generator)
|
||||||
self.update_maze(amazing.maze.get_maze())
|
self.update_maze(amazing.maze.get_maze())
|
||||||
return False
|
return False
|
||||||
# time.sleep(0.01)
|
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
pass
|
pass
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user