summaryrefslogtreecommitdiff
path: root/src/sudoku.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sudoku.h')
-rw-r--r--src/sudoku.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/sudoku.h b/src/sudoku.h
index c9d38e6..2059a81 100644
--- a/src/sudoku.h
+++ b/src/sudoku.h
@@ -1,22 +1,24 @@
-#ifndef __INCLUDED_SUDOSOLVE_SUDOKU__
-#define __INCLUDED_SUDOSOLVE_SUDOKU__
+#ifndef __INCLUDED_SUDOKUSOLVER_SUDOKU__
+#define __INCLUDED_SUDOKUSOLVER_SUDOKU__
-#include <QtGui>
-#include <QWidget>
-
-class QLineEdit;
-
-class Sudoku : public QWidget
-{
- Q_OBJECT
+class Sudoku {
public:
Sudoku();
-
+
+ // inspector
+ inline int value(int row, int column) const {
+ return sudoku_value[row][column];
+ }
+
+ // mutator
+ inline int & value(int row, int column) {
+ return sudoku_value[row][column];
+ }
+
private:
- QLineEdit * sudoku_value[9][9];
-
+ int sudoku_value[9][9];
};
-#endif // __INCLUDED_SUDOSOLVE_SUDOKU__ \ No newline at end of file
+#endif // __INCLUDED_SUDOKUSOLVER_SUDOKU__