summaryrefslogtreecommitdiff
path: root/cell.h
blob: fc5f46701567072fa91a7f539b4850e529964caa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef SUDOKU_CELL_H
#define SUDOKU_CELL_H

/* Description of a single cell on a sudoku board */
struct cell
{
	/* Sovled value of this cell */
	char val;

	/* Array used to determine which values this cell can NOT be.
	 * A non-zero value at index N indicates that this cell cannot have the
	 * value N + 1 */
	char not[9];
};

#endif /* SUDOKU_CELL_H */