mirror of
https://github.com/Fare-spec/cours.git
synced 2025-12-08 03:00:37 +00:00
Auto urgent commit.
This commit is contained in:
7
graphes/maze/main.py
Normal file
7
graphes/maze/main.py
Normal 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))
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user