Getter-Methode hinzugefügt
parent
99f0b2627b
commit
0b615ba4cc
|
@ -16,6 +16,15 @@ public class HitoriBoard {
|
|||
initializeBoard(numbers);
|
||||
}
|
||||
|
||||
public List<String> getSolutionCoordinates() {
|
||||
return solutionCoordinates;
|
||||
}
|
||||
|
||||
public HitoriCell[][] getBoard() {
|
||||
return board;
|
||||
}
|
||||
|
||||
|
||||
private void initializeBoard(int[][] numbers){
|
||||
for (int i = 0; i < numbers.length; i++) {
|
||||
for (int j = 0; j < numbers[i].length; j++) {
|
||||
|
@ -39,5 +48,10 @@ public class HitoriBoard {
|
|||
board[i][j].setState(HitoriCell.CellState.GRAY);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue