2017-12-02 14:39:19 +01:00
|
|
|
#include "header.h"
|
2017-12-06 16:25:13 +01:00
|
|
|
|
|
|
|
int LogEntry::randomed(0);
|
2017-12-02 14:39:19 +01:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
|
2018-01-08 18:44:32 +01:00
|
|
|
unsigned int cols=4,rows=5;
|
2017-12-02 14:39:19 +01:00
|
|
|
|
|
|
|
vector<LogEntry> log;
|
|
|
|
Puzzle puzzleMat(cols, rows);
|
2017-12-29 14:33:22 +01:00
|
|
|
if(!puzzleMat.PreProcessing())
|
|
|
|
{
|
2018-01-06 23:23:42 +01:00
|
|
|
cerr << "Error occurred at PreProcessing!";
|
2017-12-29 14:33:22 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-01-07 21:58:16 +01:00
|
|
|
puzzleMat.createRandomBox();
|
2017-12-02 14:39:19 +01:00
|
|
|
|
2018-01-07 20:08:50 +01:00
|
|
|
cout << "Solving Puzzle now...";
|
2018-01-07 14:16:57 +01:00
|
|
|
while(next(log, puzzleMat));
|
2017-12-02 14:39:19 +01:00
|
|
|
|
2018-01-07 20:08:50 +01:00
|
|
|
cout << "Done!" << endl;
|
2017-12-02 14:39:19 +01:00
|
|
|
puzzleMat.printPuzzle();
|
2017-12-23 10:11:07 +01:00
|
|
|
return 0;
|
2017-12-02 14:39:19 +01:00
|
|
|
}
|