diff options
author | Stijn Buys <ingar@osirion.org> | 2013-04-26 22:10:51 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-04-26 22:10:51 +0000 |
commit | 9678575b811adad507ee6c6aa1d79c159a27263c (patch) | |
tree | 52dbf5495492758e822c10ec804d6df9109d097b | |
parent | c9ff1c4b5302440194b8f4f8d200d03b6e263ac4 (diff) |
Removed solver debug output.
-rw-r--r-- | src/sudoku.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/sudoku.cc b/src/sudoku.cc index d40a8c8..88695de 100644 --- a/src/sudoku.cc +++ b/src/sudoku.cc @@ -1,7 +1,7 @@ #include "sudoku.h" -#include <QtGui> +// #include <QtGui> #include <cstdlib> @@ -337,20 +337,20 @@ int Sudoku::solve_search() bool Sudoku::solve_search_step(int &iterations, Sudoku & solution) { - qDebug() << "iteration " << iterations; - for (int row = 0; row < 9; row ++) { - qDebug() - << cell(row, 0).value() - << cell(row, 1).value() - << cell(row, 2).value() - << cell(row, 3).value() - << cell(row, 4).value() - << cell(row, 5).value() - << cell(row, 6).value() - << cell(row, 7).value() - << cell(row, 8).value(); - } - +// qDebug() << "iteration " << iterations; +// for (int row = 0; row < 9; row ++) { +// qDebug() +// << cell(row, 0).value() +// << cell(row, 1).value() +// << cell(row, 2).value() +// << cell(row, 3).value() +// << cell(row, 4).value() +// << cell(row, 5).value() +// << cell(row, 6).value() +// << cell(row, 7).value() +// << cell(row, 8).value(); +// } +// if (solved()) { solution.assign((*this)); return true; |