Make a local variable with the shape
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3d4730cfc0
commit
d08d57ca78
@ -7,6 +7,8 @@ import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Random;
|
||||
|
||||
import static school_project.Piece.*;
|
||||
|
||||
public class MapGenerator {
|
||||
private static final Random rand = new Random();
|
||||
public enum Difficulty {
|
||||
@ -93,7 +95,9 @@ public class MapGenerator {
|
||||
}
|
||||
}
|
||||
}
|
||||
ret.addPiece(new Piece(shape));
|
||||
boolean[][] turnPiece = shape;
|
||||
|
||||
ret.addPiece(new Piece(turnPiece));
|
||||
}
|
||||
|
||||
//generate pieces
|
||||
|
Loading…
Reference in New Issue
Block a user