- for(int i=t->getNumLeaves();i<t->getNumNodes();i++){
- int lc = t->tree[i].getLChild();
- int rc = t->tree[i].getRChild();
+ //numComp+1 for AB, AC, BC, ABC
+ data.resize(numComp+1,0);
+
+ int count = 0;
+ for (int a=0; a<numGroups; a++) {
+ for (int l = a+1; l < numGroups; l++) {
+ int score = 0;
+
+ //groups in this combo
+ groups.push_back(globaldata->Groups[a]); groups.push_back(globaldata->Groups[l]);
+
+ //copy users tree so that you can redo pgroups
+ copyTree->getCopy(t);
+
+ //create pgroups that reflect the groups the user want to use
+ for(int i=copyTree->getNumLeaves();i<copyTree->getNumNodes();i++){
+ copyTree->tree[i].pGroups = (copyTree->mergeUserGroups(i, groups));
+ }
+
+ for(int i=copyTree->getNumLeaves();i<copyTree->getNumNodes();i++){
+
+ if (m->control_pressed) { return data; }
+
+ int lc = copyTree->tree[i].getLChild();
+ int rc = copyTree->tree[i].getRChild();