correct_lonely_piece #54

Merged
Mat_02 merged 2 commits from correct_lonely_piece into master 2023-05-16 20:25:33 +02:00
Showing only changes of commit aecbf2cb9a - Show all commits

View File

@ -48,6 +48,7 @@ public class MapGenerator {
map_shape[i][j] = rand.nextBoolean();
}
}
//delete lonely piece
for (int i =0;i<map_shape.length;i++){
for (int j = 0; j<map_shape[i].length;j++){
boolean test = false;
@ -62,7 +63,6 @@ public class MapGenerator {
}
if (!test)
map_shape[i][j] = false;
}
}
}