summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Wadham <[email protected]>2015-06-28 12:09:00 +1000
committerIan Wadham <[email protected]>2015-06-28 12:09:00 +1000
commitcdddb0b18e9564dfa1106d39d2afcbecacfb74d8 (patch)
tree3d5596e6087b0c0a0a03eb11fc5d8e87402e0624
parent3497d744efd237fb76225b2e4ff8b545bc8f998f (diff)
Clean up notes to self.
-rw-r--r--src/generator/dlxsolver.cpp6
-rw-r--r--src/gui/serializer.cpp3
2 files changed, 5 insertions, 4 deletions
diff --git a/src/generator/dlxsolver.cpp b/src/generator/dlxsolver.cpp
index f1ddce2..db89afb 100644
--- a/src/generator/dlxsolver.cpp
+++ b/src/generator/dlxsolver.cpp
@@ -241,7 +241,7 @@ int DLXSolver::solveSudoku (SKGraph * graph, const BoardContents & boardValues,
#ifdef DLX_LOG
fprintf (stderr, "\nTEST for DLXSolver\n\n");
- printSudoku(); // IDW test.
+ printSudoku();
qDebug() << "DLXSolver::solve: Order" << order << "boardArea" << boardArea
<< "nGroups" << nGroups;
@@ -554,7 +554,7 @@ int DLXSolver::solveDLX (int solutionLimit)
coverColumn (p->columnHeader);
p = p->right;
}
- // printDLX(); // IDW test.
+ // printDLX();
if (mCorner->right != mCorner) {
break; // Start searching a new sub-matrix.
@@ -595,7 +595,7 @@ int DLXSolver::solveDLX (int solutionLimit)
uncoverColumn (p->columnHeader);
p = p->left;
}
- // printDLX(); // IDW test.
+ // printDLX();
// Select next row down and continue searching for a solution.
currNode = currNode->below;
diff --git a/src/gui/serializer.cpp b/src/gui/serializer.cpp
index 4fa9ee2..d998bac 100644
--- a/src/gui/serializer.cpp
+++ b/src/gui/serializer.cpp
@@ -188,7 +188,7 @@ SKGraph* Serializer::deserializeGraph(QDomElement element) {
QString orderStr = element.attribute("order");
if(orderStr.isNull())
return 0;
- // IDW TODO - Allow symbolic values for Mathdoku, set from user-config.
+ // Allow symbolic values for Mathdoku, set from user-config dialog.
int order = (orderStr == QString("Mathdoku")) ?
Settings::mathdokuSize() :
orderStr.toInt(&noFailure, 0);
@@ -220,6 +220,7 @@ SKGraph* Serializer::deserializeGraph(QDomElement element) {
sizeY = readInt(element,"sizeY",&err);
}
else {
+ // In Mathdoku, there are row and column groups only.
ncliques = 2 * order;
sizeX = order;
sizeY = order;