I just moved recently to use java and after I learn some of the syntax I decided to write a chess game to teach myself more.
I'm trying to create an array of array of string to store the basic view of the board, but when I print it out everything is null.
private String board[][] = new String[8][8];
public Board() {
System.out.println("created");
for (String[] row : board) {
for (String cell : row) {
cell = "-";
}
}
printBoard();
}
It's feel like I'm messing a bit with the for each or the string concept.
Thanks in advance,
Or