loading file
This commit is contained in:
parent
03c045380c
commit
85ceead618
Binary file not shown.
|
|
@ -252,13 +252,6 @@ public class Board {
|
||||||
this.height = 8;
|
this.height = 8;
|
||||||
this.pieces = new ArrayList<>();
|
this.pieces = new ArrayList<>();
|
||||||
|
|
||||||
if (array == null || array.length < 9) {
|
|
||||||
this.turnNumber = 0;
|
|
||||||
this.isWhiteTurn = true;
|
|
||||||
populateBoard();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int y = 0; y < height; y++) {
|
for (int y = 0; y < height; y++) {
|
||||||
if (y >= array.length) {
|
if (y >= array.length) {
|
||||||
y = height;
|
y = height;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue