PuzzleSolver/Source/main.cpp
Raphael Maenle 7920e73bfb removed calls to other layers to get into solver
problem with imread in preprocess when multiple layers make call. This was subv. by deactivating these layers.
2018-01-26 22:27:46 +01:00

31 lines
548 B
C++

#include "header.h"
int LogEntry::randomed(0);
int main()
{
unsigned int cols=36,rows=28;
vector<LogEntry> log;
Puzzle puzzleMat(cols, rows);
if(!puzzleMat.PreProcessing())
{
cerr << "Error occurred at PreProcessing!";
return 0;
}
//puzzleMat.createRandomBox();
cout << "Solving Puzzle now..." << flush;
while(next(log, puzzleMat));
cout << "Done!" << endl;
cout << "Printing Puzzle now..." <<flush;
puzzleMat.resultImage(log);
//puzzleMat.printPuzzle();
return 0;
}