protected function generateAllTrees()
    {
        $this->minFightersCheck(); // Check there is enough fighters to generate trees
        $usersByArea = $this->getFightersByArea(); // Get fighters by area (reparted by entities and filled with byes)
        $this->generateGroupsForRound($usersByArea, 1); // Generate all groups for round 1
        $numFighters = count($usersByArea->collapse());
        $this->pushEmptyGroupsToTree($numFighters); // Fill tree with empty groups
        $this->addParentToChildren($numFighters); // Build the entire tree and fill the next rounds if possible
    }
protected function generateAllTrees()
    {
        $this->minFightersCheck(); // Check there is enough fighters to generate trees
        $usersByArea = $this->getFightersByArea(); // Get fighters by area (reparted by entities and filled with byes)
        $this->generateGroupsForRound($usersByArea, 1); // Generate all groups for round 1
        $numFighters = count($usersByArea->collapse());
        $this->pushEmptyGroupsToTree($numFighters); // Fill tree with empty groups
        $this->addParentToChildren($numFighters); // Build the entire tree and fill the next rounds if possible
    }
protected function generateAllTrees ( ) { $ this -> minFightersCheck ( ) ; // Check there is enough fighters to generate trees $ usersByArea = $ this -> getFightersByArea ( ) ; // Get fighters by area (reparted by entities and filled with byes) $ this -> generateGroupsForRound ( $ usersByArea , 1 ) ; // Generate all groups for round 1 $ numFighters = count ( $ usersByArea -> collapse ( ) ) ; $ this -> pushEmptyGroupsToTree ( $ numFighters ) ; // Fill tree with empty groups $ this -> addParentToChildren ( $ numFighters ) ; // Build the entire tree and fill the next rounds if possible }
Generate all the groups, and assign figthers to group
@throws TreeGenerationException
Generate all the groups and assign figthers to group