From c93587b39b34c38f7d788fc639ced2bf5493a56a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 26 Apr 2013 20:12:25 +0000 Subject: Added brute-force search algorithm. --- src/cell.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/cell.cc') diff --git a/src/cell.cc b/src/cell.cc index c586a73..21b7560 100644 --- a/src/cell.cc +++ b/src/cell.cc @@ -14,9 +14,8 @@ 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; + cell_valid = other.valid(); + cell_value = other.value(); for (int i = 0; i < 9; i++) { cell_possibility[i] = other.cell_possibility[i]; -- cgit v1.2.3