PuzzleSolver/Source/main.cpp
Raphael Maenle ab2741a743 changed name of layer 1 to layer 0
and slightly modified speedtable: hard coded inverse to make calculation easier
2018-01-08 18:44:32 +01:00

27 lines
453 B
C++

#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();
cout << "Solving Puzzle now...";
while(next(log, puzzleMat));
cout << "Done!" << endl;
puzzleMat.printPuzzle();
return 0;
}