summaryrefslogtreecommitdiff
path: root/src/sudoku.h
blob: 2059a81e461abdf7ec973ccdf497b86d925490c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

#ifndef __INCLUDED_SUDOKUSOLVER_SUDOKU__
#define __INCLUDED_SUDOKUSOLVER_SUDOKU__

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:
	int sudoku_value[9][9];
};

#endif // __INCLUDED_SUDOKUSOLVER_SUDOKU__