Compare commits
No commits in common. "2acf69d466662b4cb0ca420d209f3eb82f557786" and "521b3fb05b0b25af7ff73a15c4eedd04cf45fde2" have entirely different histories.
2acf69d466
...
521b3fb05b
2 changed files with 3 additions and 6 deletions
|
@ -88,7 +88,8 @@ public class SudokuController {
|
||||||
int row = view.getSelectedRow();
|
int row = view.getSelectedRow();
|
||||||
int col = view.getSelectedColumn();
|
int col = view.getSelectedColumn();
|
||||||
|
|
||||||
int value = Integer.parseInt(view.getCellValue(row, col));
|
String inputText = view.getCellValue(row, col);
|
||||||
|
int value = Integer.parseInt(inputText);
|
||||||
// Check if the input is legal and update the model and view
|
// Check if the input is legal and update the model and view
|
||||||
if (model.isLegal(row, col, value)) {
|
if (model.isLegal(row, col, value)) {
|
||||||
model.set(row, col, value);
|
model.set(row, col, value);
|
||||||
|
|
|
@ -115,11 +115,7 @@ public class Solver implements SudokuSolver {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** {@inheritDoc} */
|
||||||
* {@inheritDoc}
|
|
||||||
* <p>
|
|
||||||
* This is <b>not</b> checked for validity
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void set(int row, int col, int val) {
|
public void set(int row, int col, int val) {
|
||||||
if (row < 9 && col < 9) {
|
if (row < 9 && col < 9) {
|
||||||
|
|
Loading…
Reference in a new issue