changed cut function
This commit is contained in:
parent
4ed991539d
commit
884a20eb44
@ -100,6 +100,7 @@ void solve(vector<LogEntry>& log,Puzzle& puzzleMat)
|
||||
break;
|
||||
}
|
||||
float worth = capLogElements(log);
|
||||
cout << "remaining: " << log.back().PieceCollector.size() << endl;
|
||||
// calculateTrueDestructionPower(log,puzzleMat, worth);
|
||||
CalculateNewCombinedQuality(log, log.back().PieceCollector, puzzleMat.combinedQualityVector);
|
||||
|
||||
@ -213,6 +214,8 @@ float capLogElements(vector<LogEntry>& log)
|
||||
if(id>0)
|
||||
newid = --id; //set to the one just over limit
|
||||
|
||||
else//this only for test
|
||||
cut(log,newid);//this only for test
|
||||
|
||||
cut(log,++newid);//this only for test
|
||||
return 1;//this only for test
|
||||
|
Loading…
Reference in New Issue
Block a user