Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Dudev <emildudev@gmail.com>2013-12-21 11:45:27 (GMT)
committer Emil Dudev <emildudev@gmail.com>2013-12-21 11:45:27 (GMT)
commit70240ea72ca6adde950fc7a24c80b0e4ff87ec8d (patch)
tree7f4c7a5f9ec6465aba2edd074baf3a8b320de036
parentf6093a3537d4bf751464a78ce5d54c9b1626e64a (diff)
Changed the number of holes countticket3495
-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: