diff --git a/EM-Qual/QualData.cs b/EM-Qual/QualData.cs index 8466d5a..9aad1df 100644 --- a/EM-Qual/QualData.cs +++ b/EM-Qual/QualData.cs @@ -179,11 +179,17 @@ public static class QualData /// Array of matches to print private static void PrintMatches(Match[] matches) { + Console.WriteLine($"{"Home",-15} {"Guest",-20}"); + for(int i = 0; i < 39; i++) + { + Console.Write("="); + } + Console.WriteLine(); foreach (var match in matches) { TeamResult homeTeam = match.HomeTeam; TeamResult guestTeam = match.GuestTeam; - Console.WriteLine($"{homeTeam.TeamName} {homeTeam.Goals} - {guestTeam.Goals} {guestTeam.TeamName}"); + Console.WriteLine($"{homeTeam.TeamName,-14} | {guestTeam.TeamName, -15} => {homeTeam.Goals}:{guestTeam.Goals}"); } } @@ -197,11 +203,17 @@ public static class QualData private static string AskForCountry(string[] possibleCountries) { string country; + bool isContained; do { - Console.Write("Enter country: "); + Console.Write("Enter the name of a country to filter: "); country = Console.ReadLine()!; - } while (!IsContained(country!, possibleCountries)); + isContained = IsContained(country, possibleCountries); + if (!isContained) + { + Console.WriteLine("Invalid input, try again..."); + } + } while (!isContained); return country; }