algorithm edited but nothing better

This commit is contained in:
2026-03-24 15:33:50 +01:00
parent 8dc00e238a
commit a79d4e5c3b
3 changed files with 37 additions and 45 deletions
+7 -8
View File
@@ -26,15 +26,14 @@ class Maze:
return res
def ascii_print(self) -> None:
for cell in self.maze[0]:
print("_", end="")
if cell.get_north():
print("__", end="")
else:
print(" ", end="")
print("_")
for line in self.maze:
if line is self.maze[0]:
for cell in line:
print("_", end="")
if cell.get_north():
print("__", end="")
else:
print(" ", end="")
print()
for cell in line:
if cell is line[0] and cell.get_west():
print("|", end="")