removed bugs. some puzzles take forever. most can be solved
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#define MAX_ABSTRAX 1
|
||||
#define structdebug
|
||||
|
||||
#include "header.h"
|
||||
|
||||
@ -7,7 +8,7 @@
|
||||
int main()
|
||||
{
|
||||
|
||||
int cols=3, rows=2;
|
||||
int cols=10, rows=10;
|
||||
//some basic part stuff
|
||||
vector<Part> myFirstPuzzle;
|
||||
Part myFirstPart;
|
||||
@ -18,7 +19,6 @@ int main()
|
||||
randomBox myRandomBox(cols,rows);
|
||||
myRandomBox.createRandomPuzzle();
|
||||
vector<PuzzlePiece> myFirstBox = myRandomBox.shuffle();
|
||||
myRandomBox.printPuzzle();
|
||||
|
||||
|
||||
|
||||
@ -26,9 +26,14 @@ int main()
|
||||
vector<LogEntry> log;
|
||||
vector<PuzzlePiece*> p_myFirstBox;
|
||||
|
||||
cout << "original puzzle: " << endl;
|
||||
myRandomBox.printPuzzle();
|
||||
cout << endl;
|
||||
for(int i=0;i<myFirstBox.size();i++)
|
||||
p_myFirstBox[i] = &myFirstBox[i];
|
||||
p_myFirstBox.push_back(&myFirstBox[i]);
|
||||
Puzzle puzzleMat(cols, rows);
|
||||
|
||||
while(next(log, p_myFirstBox,puzzleMat));
|
||||
|
||||
puzzleMat.printPuzzle();
|
||||
}
|
||||
|
Reference in New Issue
Block a user