Added rotation functionality, minor cleanups on the way

This commit is contained in:
2017-11-28 21:35:49 +01:00
parent 3567b77cec
commit 2c71dd7a47
3 changed files with 61 additions and 81 deletions

View File

@ -9,7 +9,7 @@
int main()
{
int cols=10, rows=10;
int cols=4, rows=4;
//some basic part stuff
vector<Part> myFirstPuzzle;
Part myFirstPart;
@ -40,7 +40,8 @@ int main()
Puzzle puzzleMat(cols, rows);
//vector<vector<PuzzlePiece*>> ab1class = abstractionLayer1classify(log, p_myFirstBox,puzzleMat);
for(int i=0;i<myFirstBox.size();i++)
cout << (*p_myFirstBox[i]).getShift() << endl;
while(next(log, p_myFirstBox,puzzleMat));
puzzleMat.printPuzzle();