Fixed a bug with the Hint button. When pressed when having notes activated, it would set notes instead of revealing the selected field.
Also added the sudoku ic_launcher icon.
BIN
app/src/main/ic_launcher-web.png
Normal file
After Width: | Height: | Size: 63 KiB |
|
@ -179,10 +179,16 @@ public class GameController implements IModelChangedListener, Parcelable {
|
||||||
|
|
||||||
int[] solved = solve();
|
int[] solved = solve();
|
||||||
// and reveal the selected value.
|
// and reveal the selected value.
|
||||||
selectValue(solved[selectedRow * getSize() + selectedCol]);
|
int value = solved[selectedRow * getSize() + selectedCol];
|
||||||
|
setValue(selectedRow, selectedCol, value);
|
||||||
|
// add state to undo
|
||||||
|
undoRedoManager.addState(gameBoard);
|
||||||
|
highlightValue = value;
|
||||||
|
|
||||||
usedHints++;
|
usedHints++;
|
||||||
|
|
||||||
notifyHintListener();
|
notifyHintListener();
|
||||||
|
notifyHighlightChangedListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setGameType(GameType type) {
|
private void setGameType(GameType type) {
|
||||||
|
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 16 KiB |