diff options
Diffstat (limited to 'src/cell.cc')
| -rw-r--r-- | src/cell.cc | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cell.cc b/src/cell.cc index 31754b7..c586a73 100644 --- a/src/cell.cc +++ b/src/cell.cc @@ -4,6 +4,7 @@  Cell::Cell()  {  	cell_value = 0; +	cell_valid = true;  }  Cell::Cell(const Cell & other) @@ -13,7 +14,9 @@ Cell::Cell(const Cell & other)  void Cell::assign(const Cell & other)  { +	cell_valid = other.cell_valid;  	cell_value = other.cell_value; +	cell_valid = other.cell_valid;  	for (int i = 0; i < 9; i++) {  		cell_possibility[i] = other.cell_possibility[i]; @@ -29,3 +32,8 @@ void Cell::set_possibility(int value, bool possible)  {  	cell_possibility[value] = possible;  } + +void Cell::set_valid(bool valid) +{ +	cell_valid = valid; +}  | 
