Skip to content

Commit

Permalink
Create make_df_maze.py
Browse files Browse the repository at this point in the history
Example usage script for Maze class
  • Loading branch information
xnx authored Aug 10, 2020
1 parent 466d36f commit e74dd01
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions maze/make_df_maze.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from df_maze import Maze

# Maze dimensions (ncols, nrows)
nx, ny = 15, 15
# Maze entry position
ix, iy = 0, 0

maze = Maze(nx, ny, ix, iy)
maze.make_maze()

print(maze)
maze.write_svg('maze.svg')

0 comments on commit e74dd01

Please sign in to comment.