redid some of the includes and changed way statics are saved
This commit is contained in:
		@@ -1,8 +1,6 @@
 | 
			
		||||
#include "header.h"
 | 
			
		||||
#include "header/input.h"
 | 
			
		||||
 | 
			
		||||
int LogEntry::randomed(0);
 | 
			
		||||
unsigned int PuzzlePiece::idcount(0);
 | 
			
		||||
 | 
			
		||||
int main()
 | 
			
		||||
{
 | 
			
		||||
@@ -10,21 +8,17 @@ int main()
 | 
			
		||||
    unsigned int cols=5, rows=6;
 | 
			
		||||
 | 
			
		||||
    //some basic random puzzle stuff
 | 
			
		||||
    vector<Part> myFirstBox = createBox(coor(cols,rows));
 | 
			
		||||
    Puzzle myFirstPuzzle(cols,rows);
 | 
			
		||||
    myFirstPuzzle.createRandomBox();
 | 
			
		||||
 | 
			
		||||
    //some advanced solver stuff
 | 
			
		||||
    vector<LogEntry> log;
 | 
			
		||||
    vector<Part*> p_myFirstBox;
 | 
			
		||||
 | 
			
		||||
    //BoxClassify myFirstBox();
 | 
			
		||||
    cout << endl;
 | 
			
		||||
    for(auto &i:myFirstBox)
 | 
			
		||||
        p_myFirstBox.push_back(&i);
 | 
			
		||||
 | 
			
		||||
    Puzzle puzzleMat(cols, rows);
 | 
			
		||||
 | 
			
		||||
    //vector<vector<PuzzlePiece*>> ab1class = abstractionLayer1classify(log, p_myFirstBox,puzzleMat);
 | 
			
		||||
    while(next(log, p_myFirstBox,puzzleMat));
 | 
			
		||||
    while(next(log, puzzleMat.p_myBox,puzzleMat));
 | 
			
		||||
 | 
			
		||||
    puzzleMat.printPuzzle();
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user