PuzzleSolver/Source/main.cpp
Raphael Maenle 86c4e26bc7 improved random generator, made information call from Part more direct
todo: add indexing to puzzlepieces and all four rotation into puzzlebox (or maybe only log?). this needs to be done for random algorithm and for realPuzzle
2017-12-21 13:07:01 +01:00

25 lines
522 B
C++

#include "header.h"
int LogEntry::randomed(0);
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();
//vector<vector<PuzzlePiece*>> ab1class = abstractionLayer1classify(log, p_myFirstBox,puzzleMat);
while(next(log, puzzleMat.p_myBox,puzzleMat));
puzzleMat.printPuzzle();
}