Ejemplo n.º 1
0
 internal void Advance()
 {
     if (CurrentFight.Complete)
     {
         MergeSortGroup newGroup = CurrentFight.ToGroup();
         _groups.Add(newGroup);
         AdvanceCurrentFight();
     }
     if (CurrentItemFight != null)
     {
         CurrentItemFight = CurrentFight.GetNextFight();
     }
 }
Ejemplo n.º 2
0
 internal void RightWins(ItemFight mergeSortFight)
 {
     _sortedItems.Add(mergeSortFight.Right);
     LeftGroup.ReturnItem(mergeSortFight.Left);
     PotentiallyComplete();
 }