Auto urgent commit.

This commit is contained in:
2025-01-27 14:43:48 +01:00
parent a53a44a130
commit 91c245e784
2 changed files with 12 additions and 0 deletions

7
graphes/maze/main.py Normal file
View File

@@ -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))

View File

@@ -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