add a comment and delete space useless
This commit is contained in:
parent
16d2c89e95
commit
aecbf2cb9a
@ -48,6 +48,7 @@ public class MapGenerator {
|
|||||||
map_shape[i][j] = rand.nextBoolean();
|
map_shape[i][j] = rand.nextBoolean();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//delete lonely piece
|
||||||
for (int i =0;i<map_shape.length;i++){
|
for (int i =0;i<map_shape.length;i++){
|
||||||
for (int j = 0; j<map_shape[i].length;j++){
|
for (int j = 0; j<map_shape[i].length;j++){
|
||||||
boolean test = false;
|
boolean test = false;
|
||||||
@ -62,7 +63,6 @@ public class MapGenerator {
|
|||||||
}
|
}
|
||||||
if (!test)
|
if (!test)
|
||||||
map_shape[i][j] = false;
|
map_shape[i][j] = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user