furthered structure.cpp with code segments. edited log class in solve.h
This commit is contained in:
@ -1,15 +1,34 @@
|
||||
#define MAX_ABSTRAX = 1
|
||||
|
||||
#include "header.h"
|
||||
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
int cols=3, rows=2;
|
||||
//some basic part stuff
|
||||
vector<Part> myFirstPuzzle;
|
||||
Part myFirstPart;
|
||||
myFirstPart.setConnections(0b00101000);
|
||||
myFirstPuzzle.push_back(myFirstPart);
|
||||
cout << "Hello World" << endl;
|
||||
randomBox myFirstBox(2,3);
|
||||
|
||||
//some basic random puzzle stuff
|
||||
randomBox myFirstBox(cols,rows);
|
||||
myFirstBox.createRandomPuzzle();
|
||||
myFirstBox.shuffle();
|
||||
myFirstBox.printPuzzle();
|
||||
|
||||
|
||||
|
||||
|
||||
//some advanced solver stuff
|
||||
vector<LogEntry> log;
|
||||
vector<PuzzlePiece*> p_myFirstBox;
|
||||
for(int i=0;i<myFirstBox.size();i++)
|
||||
p_myFirstBox[i] = &myFirstBox[i];
|
||||
Puzzle puzzleMat(cols, rows);
|
||||
|
||||
while(next(log, p_myFirstBox,puzzleMat));
|
||||
}
|
||||
|
Reference in New Issue
Block a user