2017-11-19 17:52:02 +01:00
|
|
|
#define MAX_ABSTRAX 1
|
2017-11-18 22:48:40 +01:00
|
|
|
|
2017-11-18 08:22:35 +01:00
|
|
|
#include "header.h"
|
2017-11-17 22:10:36 +01:00
|
|
|
|
2017-11-18 22:48:40 +01:00
|
|
|
|
|
|
|
|
2017-11-17 22:10:36 +01:00
|
|
|
int main()
|
|
|
|
{
|
2017-11-18 22:48:40 +01:00
|
|
|
|
|
|
|
int cols=3, rows=2;
|
|
|
|
//some basic part stuff
|
2017-11-17 22:10:36 +01:00
|
|
|
vector<Part> myFirstPuzzle;
|
|
|
|
Part myFirstPart;
|
|
|
|
myFirstPart.setConnections(0b00101000);
|
|
|
|
myFirstPuzzle.push_back(myFirstPart);
|
2017-11-18 22:48:40 +01:00
|
|
|
|
|
|
|
//some basic random puzzle stuff
|
2017-11-19 17:52:02 +01:00
|
|
|
randomBox myRandomBox(cols,rows);
|
|
|
|
myRandomBox.createRandomPuzzle();
|
|
|
|
vector<PuzzlePiece> myFirstBox = myRandomBox.shuffle();
|
|
|
|
myRandomBox.printPuzzle();
|
2017-11-18 22:48:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//some advanced solver stuff
|
|
|
|
vector<LogEntry> log;
|
|
|
|
vector<PuzzlePiece*> p_myFirstBox;
|
2017-11-19 17:52:02 +01:00
|
|
|
|
2017-11-18 22:48:40 +01:00
|
|
|
for(int i=0;i<myFirstBox.size();i++)
|
|
|
|
p_myFirstBox[i] = &myFirstBox[i];
|
|
|
|
Puzzle puzzleMat(cols, rows);
|
|
|
|
|
|
|
|
while(next(log, p_myFirstBox,puzzleMat));
|
2017-11-17 22:10:36 +01:00
|
|
|
}
|