/// <summary> /// Lets the them fight. /// </summary> /// <param name="i">The i.</param> public FightEnd LetThemFight(int i) { this.AskReferee(i); Warrior warrior1 = this.team1[i]; Warrior warrior2 = this.team2[i]; warrior2.CombatLevelText(); Console.WriteLine(); string combatLevelText = warrior1.CombatLevelText(); string[] combatLevelTextParts = combatLevelText.Split(' '); Console.ForegroundColor = ConsoleColor.Cyan; Console.Write(combatLevelTextParts[0]); Console.ForegroundColor = ConsoleColor.Gray; Console.WriteLine(combatLevelText.Substring(combatLevelTextParts[0].Length)); Console.WriteLine(" vs."); Console.ForegroundColor = ConsoleColor.Magenta; combatLevelText = warrior2.CombatLevelText(); combatLevelTextParts = combatLevelText.Split(' '); Console.ForegroundColor = ConsoleColor.Magenta; Console.Write(combatLevelTextParts[0]); Console.ForegroundColor = ConsoleColor.Gray; Console.WriteLine(combatLevelText.Substring(combatLevelTextParts[0].Length)); Console.ForegroundColor = ConsoleColor.Gray; Console.WriteLine(); // A draw will be ignored -> advantage team2 return(new FightEnd(warrior1.CombatLevel > warrior2.CombatLevel)); }