PuzzleSolver/Source/main.cpp

31 lines
546 B
C++
Raw Normal View History

#include "header.h"
int LogEntry::randomed(0);
int main()
{
2018-01-10 17:40:12 +01:00
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();
2018-01-20 22:41:48 +01:00
cout << "Solving Puzzle now..." << flush;
while(next(log, puzzleMat));
2018-01-07 20:08:50 +01:00
cout << "Done!" << endl;
2018-01-20 22:41:48 +01:00
cout << "Printing Puzzle now..." <<flush;
puzzleMat.resultImage(log);
2018-01-20 20:03:34 +01:00
puzzleMat.printPuzzle();
return 0;
}