fixed size issue with load

This commit is contained in:
marce 2025-05-07 16:10:38 +02:00
parent 4f93c841e5
commit 07aa9541eb
1 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ public class Board {
}
public Board(String[] array) {
this.Height=array.length-2;
this.Height=array.length-1;
this.pieces= new ArrayList <> ();
for (int y=0;y<Height;y++) {
String line = array[y];
@ -227,7 +227,7 @@ public class Board {
}
}
}
String turnIndicator = array[Height+1];
String turnIndicator = array[Height];
if(turnIndicator.equals("W")) {
this.turnIsWhite = true;
} else {