summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-04-21 22:05:55 +0200
committerNoah Loomans <noahloomans@gmail.com>2018-04-21 22:05:55 +0200
commit4c7bb3b5086f3eef81d3c02716b9f10945ced585 (patch)
treefc48403c2fce56178f10fc01c309c096a4e56ac2
parent836e752fee59bed9add42ebf3040e298baf2ca2e (diff)
Set the size from the cli
-rw-r--r--main.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.rb b/main.rb
index d275eac..c04bd13 100644
--- a/main.rb
+++ b/main.rb
@@ -38,6 +38,6 @@ class MazeGenerator
end
end
-mazeGenerator = MazeGenerator.new(118, 30)
+mazeGenerator = MazeGenerator.new(ARGV[0].to_i, ARGV[1].to_i)
mazeGenerator.generate
puts mazeGenerator.maze