Compare commits
1 Commits
master
...
Rotation_p
Author | SHA1 | Date | |
---|---|---|---|
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