summaryrefslogtreecommitdiff
path: root/cell.h
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-03-10 21:22:23 +1300
committerDavid Phillips <david@sighup.nz>2019-03-10 21:45:55 +1300
commitb47a999dee9ee7a0d2e7b0c4d1cf25282abfa71a (patch)
tree90a282f7f4c3c3766648df42061c3062ef9e7b4b /cell.h
parentb434d87ee4deb9cc07af1be79d90b874fa139321 (diff)
downloadsudoku-b47a999dee9ee7a0d2e7b0c4d1cf25282abfa71a.tar.xz
Clean-up
Diffstat (limited to 'cell.h')
-rw-r--r--cell.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/cell.h b/cell.h
index 76ecd90..fc5f467 100644
--- a/cell.h
+++ b/cell.h
@@ -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 */