Skip to content

Commit

Permalink
This is broken. Need Jeremy to check it out. Email me for details
Browse files Browse the repository at this point in the history
  • Loading branch information
mammargs committed Apr 29, 2013
1 parent 04e577b commit 9065ec7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Sudoku/src/Sudoku/StandardSudokuBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ public StandardSudokuBoard(int size) {

initStandardSudokuBoard(region);
}

public StandardSudokuBoard(ArrayList<CellBlock> values, int[][] answers) {
ArrayList<CellBlock> region = new ArrayList<CellBlock>();
for (int i = 0; i < SIZE * SIZE; i++) {
region.add(new CellBlock());
}

initStandardSudokuBoard(region);
}

public StandardSudokuBoard(int size, StandardSudokuBoard orig) {
// Used for cloning, no regular initialization needed
Expand Down
2 changes: 1 addition & 1 deletion Sudoku/src/Sudoku/SudokuFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private void getNewBoard() {
}
}

this.currentBoard = new StandardSudokuBoard(9);
this.currentBoard = new StandardSudokuBoard(singleAdjustedArrayValues, this.completedBoard.getBoardSolution());
this.currentBoard.setConflictingCellsToInvalid();
if (this.sudokuComponent != null) {
this.remove(this.sudokuComponent);
Expand Down

0 comments on commit 9065ec7

Please sign in to comment.