Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--maze.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/maze.py b/maze.py
index 5d66135..f951b54 100644
--- a/maze.py
+++ b/maze.py
@@ -107,10 +107,10 @@ class Maze:
else:
stack.pop()
- if self.width < 10:
+ if self.width < 15:
max_holes = 0
else:
- max_holes = int(self.width / 5)
+ max_holes = int(self.width / 7) - 1
holes = 0
while holes != max_holes: