diff --git a/graphes/maze/main.py b/graphes/maze/main.py new file mode 100644 index 0000000..a207245 --- /dev/null +++ b/graphes/maze/main.py @@ -0,0 +1,7 @@ +import maze_creator as mc +import random + + +random.seed(random.randint(-2147483647, 2147483647)) +lab = mc.Labyrinth(100,100) +lab.set_start_end((0,0),(100,100)) diff --git a/graphes/maze/maze_creator.py b/graphes/maze/maze_creator.py index 32e69d5..8ba2c03 100644 --- a/graphes/maze/maze_creator.py +++ b/graphes/maze/maze_creator.py @@ -14,9 +14,14 @@ class Labyrinth: def __str__(self) -> str: return "\n".join("".join(" " if cell == 0 else "#" for cell in row) for row in self.grid) + def set_start_end(self, start, end): self.start = start self.end = end + def generate_maze(self): + + + def solve(self): pass