diff --git a/src/main/java/ch/fritteli/labyrinth/generator/model/Labyrinth.java b/src/main/java/ch/fritteli/labyrinth/generator/model/Labyrinth.java
index f358f11..03b0e99 100644
--- a/src/main/java/ch/fritteli/labyrinth/generator/model/Labyrinth.java
+++ b/src/main/java/ch/fritteli/labyrinth/generator/model/Labyrinth.java
@@ -27,8 +27,8 @@ public class Labyrinth {
}
public Labyrinth(final int width, final int height, final long randomSeed) {
- if (width <= 0 || height <= 0) {
- throw new IllegalArgumentException("widht and height must be >=1");
+ if (width <= 1 || height <= 1) {
+ throw new IllegalArgumentException("width and height must be >1");
}
this.width = width;
this.height = height;
diff --git a/src/main/main.iml b/src/main/main.iml
new file mode 100644
index 0000000..908ad4f
--- /dev/null
+++ b/src/main/main.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/test/test.iml b/src/test/test.iml
new file mode 100644
index 0000000..a0e49a3
--- /dev/null
+++ b/src/test/test.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file