summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.rb b/main.rb
index 0d7591d..4a3d52b 100644
--- a/main.rb
+++ b/main.rb
@@ -11,7 +11,7 @@ class MazeGenerator
def generate()
@visitedCells = [@currentPos]
- @stack = [Pos.new(0, 0)]
+ @stack = [Pos.new(rand(@maze.width), rand(@maze.height))]
while !@stack.empty?
step()