This commit is contained in:
Raphael Maenle
2018-01-29 13:41:19 +01:00
parent 79109e1d34
commit 5029044157
3 changed files with 4 additions and 2 deletions

View File

@ -127,6 +127,7 @@ void setsolution(vector<LogEntry>& log, Puzzle& puzzleMat)
bool backtrack(vector<LogEntry>& log, Puzzle& puzzleMat)
{
puzzleMat.resultImage(log);
cout << "backtrack" << endl;
if(log.empty())
{
@ -209,6 +210,7 @@ float capLogElements(vector<LogEntry>& log)
}
cut(log,id);//for debugging
return 0;//for debugging
int newid=0;
//check if all over
if(id==log.back().PieceCollector.size())