removed bugs. some puzzles take forever. most can be solved

This commit is contained in:
g-spacewhale
2017-11-19 22:53:00 +01:00
parent 15940f41da
commit aa00553bdb
4 changed files with 165 additions and 49 deletions

View File

@ -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);