diff --git a/bin/domain/Box.class b/bin/domain/Box.class index 1e81b54..d102bea 100644 Binary files a/bin/domain/Box.class and b/bin/domain/Box.class differ diff --git a/src/domain/Box.java b/src/domain/Box.java index 3c4281b..51704c6 100644 --- a/src/domain/Box.java +++ b/src/domain/Box.java @@ -139,16 +139,17 @@ public class Box { } - for (int i = 0; i < 6; i++) { + for (int i = 0; i < 5; i++) { - if (counter[i] >= 1 && counter[i + 1] >= 1 && counter[i + 2] >= 1) + if (counter[i] >= 1 && counter[i + 1] >= 1 && counter[i + 2] >= 1 && counter[i + 3] >= 1) categorySmallStreet = 30; } - for (int i = 0; i < 5; i++) { + + for (int i = 0; i < 4; i++) { - if (counter[i] >= 1 && counter[i + 1] >= 1 && counter[i + 2] >= 1 && counter[i + 3] >= 1) + if (counter[i] == 1 && counter[i + 1] == 1 && counter[i + 2] == 1 && counter[i + 3] == 1 && counter[i + 3] == 1) categoryBigStreet = 40; }