summaryrefslogtreecommitdiff
path: root/src/sudoku.h
blob: afb9f16e893273975efad2960a930d5229857404 (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
25
26

#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];
	}
	
	int solve_step(int pos_row, int pos_column);
	
private:
	int sudoku_value[9][9];
};

#endif // __INCLUDED_SUDOKUSOLVER_SUDOKU__