Exemplo n.º 1
0
int main() {
    Sudoku sudoku;

    sudoku.Load_data();
    sudoku.PreCalculate();
    cursor = sudoku.begin();

    sudoku.Print();
    long long start = getSystemTime();
    solve(sudoku);
    long long finish = getSystemTime();
    sudoku.Print();

    cout << "Total run time: " <<finish-start<< " ms"<<endl;
    return 0;
}
Exemplo n.º 2
0
	bool checkRows(const Sudoku &s)
	{
		return std::all_of(s.begin(), s.end(),
				[this](const Row &r){ return checkList(r, "in row"); });
	}