Skip to content

Commit 5ff6d93

Browse files
committed
update readme
1 parent 72ff5f0 commit 5ff6d93

12 files changed

+24
-7
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
# mazes
2+
3+
A group of maze generators based on the book Mazes for Programmers: Code Your Own Twisty Passages, by James Buck.
4+
5+
Binary Tree
6+
python3 binary_tree_demo.py
7+
8+
Sidewinder
9+
python3 sidewinder_demo.py
10+
11+
Hunat and Kill
12+
python3 hunt_and_kill_demo.py
13+
14+
Recursive Backtracker
15+
python3 recursive_backtracker_demo.py
4 Bytes
Binary file not shown.

__pycache__/grid.cpython-36.pyc

-2 Bytes
Binary file not shown.
-294 Bytes
Binary file not shown.

binary_tree_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
binary_tree.BinaryTree.mutate(grid)
66

77
grid.to_string()
8+
grid.to_svg()

coloring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313

1414
grid.maximum = grid.distances.max()[1]
1515

16-
grid.to_grid()
16+
grid.to_svg()

grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def to_string(self):
7171
print(top)
7272
print(bottom)
7373

74-
def to_grid(self, cell_size = 10):
74+
def to_svg(self, cell_size = 10):
7575

7676
top_offset = 20
7777
left_offset = 20

hunt_and_kill_demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
grid = Grid(20,20)
55
HuntAndKill.mutate(grid)
66

7-
grid.to_grid()
7+
grid.to_string()
8+
grid.to_svg()

longest_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
grid.distances = new_distances.path_to(goal)
1717

1818
grid.to_string()
19-
grid.to_grid()
19+
grid.to_svg()

maze.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)