diff options
Diffstat (limited to 'cell.h')
-rw-r--r-- | cell.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1,7 +1,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; - char not[9]; -} cell; + /* 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 */ |