Getter-Methode hinzugefügt

currentStatus
Vickvick2002 2025-01-03 18:18:59 +01:00
parent 99f0b2627b
commit 0b615ba4cc
1 changed files with 14 additions and 0 deletions

View File

@ -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);
}
}
}
}