From 884a20eb442884c974108d6887bde3a8412b337d Mon Sep 17 00:00:00 2001 From: Raphael Maenle <17550607+g-spacewhale@users.noreply.github.com> Date: Sat, 27 Jan 2018 18:14:57 +0100 Subject: [PATCH] changed cut function --- Source/functions/solve/structure.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/functions/solve/structure.cpp b/Source/functions/solve/structure.cpp index 29a2fb0..9f2d3ed 100755 --- a/Source/functions/solve/structure.cpp +++ b/Source/functions/solve/structure.cpp @@ -100,6 +100,7 @@ void solve(vector& 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& 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