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