PuzzleSolver/Source/main.cpp

27 lines
453 B
C++
Raw Normal View History

#include "header.h"
int LogEntry::randomed(0);
int main()
{
unsigned int cols=4,rows=5;
vector<LogEntry> log;
Puzzle puzzleMat(cols, rows);
if(!puzzleMat.PreProcessing())
{
cerr << "Error occurred at PreProcessing!";
return 0;
}
puzzleMat.createRandomBox();
2018-01-07 20:08:50 +01:00
cout << "Solving Puzzle now...";
while(next(log, puzzleMat));
2018-01-07 20:08:50 +01:00
cout << "Done!" << endl;
puzzleMat.printPuzzle();
return 0;
}