c0f0417d3b
a1 Solver finds solutions for puzzles, dispatcher correctly distributes layers.
27 lines
453 B
C++
27 lines
453 B
C++
#include "header.h"
|
|
|
|
int LogEntry::randomed(0);
|
|
|
|
int main()
|
|
{
|
|
|
|
unsigned int cols=9,rows=8;
|
|
|
|
vector<LogEntry> log;
|
|
Puzzle puzzleMat(cols, rows);
|
|
if(!puzzleMat.PreProcessing())
|
|
{
|
|
cerr << "Error occurred at PreProcessing!";
|
|
return 0;
|
|
}
|
|
|
|
puzzleMat.createRandomBox();
|
|
|
|
cout << "Solving Puzzle now...";
|
|
while(next(log, puzzleMat));
|
|
|
|
cout << "Done!" << endl;
|
|
puzzleMat.printPuzzle();
|
|
return 0;
|
|
}
|