summaryrefslogtreecommitdiff
path: root/src/cell.h
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-07-25 18:47:14 +0000
committerStijn Buys <ingar@osirion.org>2012-07-25 18:47:14 +0000
commit6d6801d4779266b0eb062120525ef76510e76e3c (patch)
treea8e3ef7d9f64f98a64c9b9801cff0987de6d0b3c /src/cell.h
parent1c993ec2cd1a57a1d8f29c868f1638cc2f4571b3 (diff)
Added initial coverage solver.
Diffstat (limited to 'src/cell.h')
-rw-r--r--src/cell.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cell.h b/src/cell.h
index 5b38403..e81a7c4 100644
--- a/src/cell.h
+++ b/src/cell.h
@@ -6,15 +6,23 @@ class Cell {
public:
Cell();
+ Cell(const Cell & other);
+
+ void assign(const Cell & other);
// inspector
inline int value() const { return cell_value; }
+
+ inline int possibility(const int value) { return cell_possibility[value]; }
// mutator
void set_value(int value);
+ void set_possibility(int value, bool possible = true);
+
private:
int cell_value;
+ bool cell_possibility[9];
};
#endif // __INCLUDED_SUDOKUSOLVER_CELL__