mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-04-28 16:04:35 +02:00
add output to Maze class
This commit is contained in:
+12
-1
@@ -1,5 +1,16 @@
|
||||
from numpy import ma
|
||||
from src.amaz_lib import kruskal
|
||||
from src.amaz_lib import Maze
|
||||
|
||||
|
||||
def main() -> None:
|
||||
print("A-Maze-ing !!!")
|
||||
try:
|
||||
maze = Maze(maze=None)
|
||||
for alg in kruskal(10, 10):
|
||||
maze.set_maze(alg)
|
||||
maze.export_maze("test.txt")
|
||||
except Exception as err:
|
||||
print(err)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user