It iterates down that array and pushes the kid pair into the group. The groups are sorted by kid pairings that have the highest match points. The method isn't aware of the other pairs.
How can I change this method so I return groups to have the groups be created that factor in more than just a kid pair's match points?
Need to redesign algorithm slightly. Right now kids are getting pushed into groups in pairs:
It takes the match_points_arr, which has all of the pairs of kids with this structure, sorted from highest match points to lowest:
It iterates down that array and pushes the kid pair into the group. The groups are sorted by kid pairings that have the highest match points. The method isn't aware of the other pairs.
How can I change this method so I return groups to have the groups be created that factor in more than just a kid pair's match points?