This commit is contained in:
@@ -28,7 +28,7 @@ public class RenderableMultidoku {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isResolved() {
|
public boolean isResolved() {
|
||||||
return this.doku.isValid();
|
return this.doku.isSolved();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getWidth() {
|
public int getWidth() {
|
||||||
|
|||||||
@@ -363,7 +363,7 @@ public class Sudoku {
|
|||||||
*/
|
*/
|
||||||
private boolean isValid() {
|
private boolean isValid() {
|
||||||
for (Cell cell : this.getFilledCells()) {
|
for (Cell cell : this.getFilledCells()) {
|
||||||
for (IConstraint constraint : this.constraints) {
|
for (Constraint constraint : this.constraints) {
|
||||||
try {
|
try {
|
||||||
Coordinate coords = this.getCoordinateCell(cell);
|
Coordinate coords = this.getCoordinateCell(cell);
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import sudoku.io.SudokuSerializer;
|
||||||
|
|
||||||
import sudoku.constraint.BlockConstraint;
|
import sudoku.constraint.BlockConstraint;
|
||||||
import sudoku.constraint.ColumnConstraint;
|
import sudoku.constraint.ColumnConstraint;
|
||||||
import sudoku.constraint.Constraint;
|
import sudoku.constraint.Constraint;
|
||||||
|
|||||||
Reference in New Issue
Block a user