removed bugs. some puzzles take forever. most can be solved
This commit is contained in:
		@@ -40,7 +40,7 @@ private:
 | 
			
		||||
    static unsigned int idcount;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
unsigned int PuzzlePiece::idcount(0);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Puzzle
 | 
			
		||||
{
 | 
			
		||||
@@ -139,14 +139,26 @@ public:
 | 
			
		||||
    coor myCoor = coor();
 | 
			
		||||
 | 
			
		||||
    void advance(){abstractionLevel++;}
 | 
			
		||||
    void Set(){set=1;}
 | 
			
		||||
    bool isSet(){return set;}
 | 
			
		||||
    void advanceRandomed() { randomed++;}
 | 
			
		||||
    void decreaseRandomed() { randomed--;}
 | 
			
		||||
    int hasRandomed(){return randomed;}
 | 
			
		||||
 | 
			
		||||
    LogEntry()
 | 
			
		||||
    {
 | 
			
		||||
        abstractionLevel=0;
 | 
			
		||||
        set=0;
 | 
			
		||||
    }
 | 
			
		||||
private:
 | 
			
		||||
    bool set;
 | 
			
		||||
    static int randomed;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
int LogEntry::randomed(0);
 | 
			
		||||
unsigned int PuzzlePiece::idcount(0);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void printBox(vector<PuzzlePiece> myBox);
 | 
			
		||||
vector<PuzzlePiece> createBox(uint m, uint n);
 | 
			
		||||
void numerateBox(vector<PuzzlePiece>& myBox);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user