2017-12-02 14:39:19 +01:00
|
|
|
#include "header.h"
|
2017-12-06 16:25:13 +01:00
|
|
|
|
|
|
|
int LogEntry::randomed(0);
|
|
|
|
unsigned int PuzzlePiece::idcount(0);
|
2017-12-02 14:39:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
|
2017-12-16 00:10:52 +01:00
|
|
|
unsigned int cols=5, rows=6;
|
2017-12-02 14:39:19 +01:00
|
|
|
|
|
|
|
//some basic random puzzle stuff
|
2017-12-20 18:23:39 +01:00
|
|
|
vector<Part> myFirstBox = createBox(coor(cols,rows));
|
2017-12-02 14:39:19 +01:00
|
|
|
|
|
|
|
//some advanced solver stuff
|
|
|
|
vector<LogEntry> log;
|
2017-12-20 18:23:39 +01:00
|
|
|
vector<Part*> p_myFirstBox;
|
2017-12-02 14:39:19 +01:00
|
|
|
|
|
|
|
//BoxClassify myFirstBox();
|
|
|
|
cout << endl;
|
2017-12-13 10:47:15 +01:00
|
|
|
for(auto &i:myFirstBox)
|
|
|
|
p_myFirstBox.push_back(&i);
|
|
|
|
|
2017-12-02 14:39:19 +01:00
|
|
|
Puzzle puzzleMat(cols, rows);
|
|
|
|
|
|
|
|
//vector<vector<PuzzlePiece*>> ab1class = abstractionLayer1classify(log, p_myFirstBox,puzzleMat);
|
2017-12-18 13:37:31 +01:00
|
|
|
while(next(log, p_myFirstBox,puzzleMat));
|
2017-12-02 14:39:19 +01:00
|
|
|
|
|
|
|
puzzleMat.printPuzzle();
|
|
|
|
}
|