split functions, added printbox, fixed put into box

This commit is contained in:
Raphael Maenle
2017-12-23 10:11:07 +01:00
parent 93226cca1b
commit eada1bba96
7 changed files with 53 additions and 21 deletions

View File

@ -7,18 +7,16 @@ int main()
unsigned int cols=5, rows=6;
//some basic random puzzle stuff
Puzzle myFirstPuzzle(cols,rows);
myFirstPuzzle.createRandomBox();
//some advanced solver stuff
vector<LogEntry> log;
Puzzle puzzleMat(cols, rows);
puzzleMat.createRandomBox();
cout << "here" << endl;
puzzleMat.a1.printConstraintMatrix();
puzzleMat.printBox();
//vector<vector<PuzzlePiece*>> ab1class = abstractionLayer1classify(log, p_myFirstBox,puzzleMat);
while(next(log, puzzleMat.p_myBox,puzzleMat));
puzzleMat.printPuzzle();
return 0;
}